aspose file tools
The moose likes JDBC and the fly likes [Microsoft][ODBC SQL Server Driver]Invalid date format Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "[Microsoft][ODBC SQL Server Driver]Invalid date format" Watch "[Microsoft][ODBC SQL Server Driver]Invalid date format" New topic
Author

[Microsoft][ODBC SQL Server Driver]Invalid date format

Naveen Sharma
Ranch Hand

Joined: Mar 23, 2001
Posts: 65
Hi Friends
The problem is whenever i am going to Add the records in Date field of a table the error is given by the tomcat server
[Microsoft][ODBC SQL Server Driver]Invalid date format
i m using jdbc dbc bridge for connection. I have tried each and evry combination using java.util.date but all in vain. i think there is some hidden truth behind this ...... please rectify.
The Code is Following :
java.sql.Date d = new java.sql.Date(12122000);
rs_ins.updateDate("Call_Date",d);
Thanks
Naveen
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

try using a timestamp instead.

Jamie
[This message has been edited by Jamie Robertson (edited September 10, 2001).]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: [Microsoft][ODBC SQL Server Driver]Invalid date format
 
Similar Threads
Java + MS Access
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Opti onal fature not implem
setDate in Callable Stmt
Collision of Date format between java.sql and SQL Server
Sun jdbc odbc bridge error