Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How To Insert Date In MicroSoft Sql Server

843859Oct 17 2007 — edited Oct 17 2007
If I insert the date as "insert into <tabName> values(GETDATE())" in MicroSoft Sql Server, it is properly inserted. While inserting this through PreparedStatement, then it gives some error. How can I insert the date through PreparedStatement. What data type GETDATE() returns and is there any alternative to insert date through PreparedStatement in MicroSoft Sql Server
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2007
Added on Oct 17 2007
2 comments
290 views