Hi,

the sintax is ... where xxx =  CONVERT('1946-02-31','WE8HP','WE8DEC') .......
                                                       ^       ^
                                                       |       |
                                     dest character sets  and source character sets

:-)


------------------------
  From: "Roy Silva (Java)" <[EMAIL PROTECTED]>
  Subject: odbc - date error
  Date: Mon, 10 Jul 2000 11:55:27 +0100
  To: [EMAIL PROTECTED]


hi,

I have a column (SQL Server 6) called dateofbirth - a SMALLDATETIME field.
I am collecting a string (dateofbirth) from a servlet and passto a stored
procedure to verify the dob. The dob format is '1946-02-31'

where dateofbirth = convert(smalldatetime, dob)
which returns the following error message.

[Microsoft][ODBC SQL Server Driver][SQL Server] Syntax error converting
SMALLDATETIME from character string.

Please help.
thanks
roy

___________________________________________________________________________
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

---------------End of Original Message-----------------

--------------------------------------------------------
Name: Pollio
E-mail: [EMAIL PROTECTED]
Date: 07/10/2000
Time: 13:46:03
--------------------------------------------------------

___________________________________________________________________________
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