In java if you are using SQL Server you might come across an error like:
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
The problem is that there is no Date datatype for SQL Server rather we have DATETIME whose JDBC Equivalent is java.sql.Timestamp.
So, to use setDate method we need to pass java.sql.Timestamp as date.
Note : For mySQL and many other databases we are fine with Date
Lets make IT better by sharing the solutions
Monday, July 28, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment