The Artima Developer Community
Sponsored Link

Java Answers Forum
setDate error

1 reply on 1 page. Most recent reply: Sep 25, 2003 7:27 AM by Joe Parks

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Shekhar

Posts: 11
Nickname: shekhar4u
Registered: Aug, 2003

setDate error Posted: Sep 25, 2003 4:13 AM
Reply to this message Reply
Advertisement
hi pals
I am creating a java.sql.Date object and calling setDate(int,java.sql.Date) to copy to sqlserver database.

java.sql.Date d = new java.sql.Date(System.currentTimeMillis()).
...
..
cst.setDate(1,d); // here its giving a run-time error as Sqlserver: optional feature not supported
can anyone help me where am I doing wrong..
I am using jdks JdbcOdbcDriver to connect sqlserver


Joe Parks

Posts: 107
Nickname: joeparks
Registered: Aug, 2003

Re: setDate error Posted: Sep 25, 2003 7:27 AM
Reply to this message Reply
I'm assuming the variable cst refers to a CallableStatement. I don't think that the JdbcOdbc bridge supports CallableStatements. Try it with the microsoft jdbc driver for SQL Server. I don't have the URL handy, but if you search on http://msdn.microsoft.com you should be able to find it.

Flat View: This topic has 1 reply on 1 page
Topic: HELP! needed on DTD for struts-config.xml file Previous Topic   Next Topic Topic: Make a JPanel catch keypresses

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use