At the top of my head, try to use setTimestamp (I use MS Server 7.0 and I
only use setTimestamp; never needed to use setDate).

dino
-----Original Message-----
From: Jacqueline Ng <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, December 30, 1999 6:36 PM
Subject: off-topic: Problem with JDBC


>Hi
>
>I'm using Microsoft SQL Server 7. And when I tried to insert a new record
into
>my table that has a datetime field, I get the following SQLException.
>
>SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not
implemented
>
>I was using a PreparedStatement to do the insertion.
>(eg. pstmt.setDate(new java.sql.Date(System.currentTimeMillis()); )
>
>Can anyone please help me?
>
>Thanks!
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to