lenin
Oct 20th, 1999, 07:05 PM
Hello,
I have an issue with running a select statement from a string built up in VB, when submitted to a stored procedure in SQL Server.
Basically a variant is converted to a DATE data type in VB ( the get property returns a date ).
If the date is greater than 12 ( say 17/02/99, 17th Feb 1999 ) and submitted to the query string SQL baulks at this returning error: Assertion 2001, Error Opening Recordset.
If I manually run the SP with the string I get an out of range smalldatetime error.
What I would like to know is:
1. Does SQL Server expect dates in a particular format.
2. If so how do I find out.
3. Is there a workaround for this from either client or server ends? I have tried using format but since the date returned is a property it is read only.
Sorry if this seems vague.
I have an issue with running a select statement from a string built up in VB, when submitted to a stored procedure in SQL Server.
Basically a variant is converted to a DATE data type in VB ( the get property returns a date ).
If the date is greater than 12 ( say 17/02/99, 17th Feb 1999 ) and submitted to the query string SQL baulks at this returning error: Assertion 2001, Error Opening Recordset.
If I manually run the SP with the string I get an out of range smalldatetime error.
What I would like to know is:
1. Does SQL Server expect dates in a particular format.
2. If so how do I find out.
3. Is there a workaround for this from either client or server ends? I have tried using format but since the date returned is a property it is read only.
Sorry if this seems vague.