vias (Programmer) Mar 7, 2005
I have transfered a database from a server to another.
One of the tables contains a timestamp field. The value
of one of the timestamp fields was "3/6/2005 3:00:00 PM".
After the move the value of the same field is now
"06/03/2005 15:00".
In my program I have the following code:
Dim timestamp
timestamp = rs("timestamp")
"select strdate = datediff(day, '"×tamp&"', getdate())"
This SELECT statement was working fine on the previous server.On the new server, I get problems with some values; for instance, I get the following error when the timestamp value is "28/02/2005 16:58:00"
-----------------------------------------------------------
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char
data type to a datetime data type
resulted in an out-of-range datetime value.
-----------------------------------------------------------
Thanks in advance for your help.
Vias
I have transfered a database from a server to another.
One of the tables contains a timestamp field. The value
of one of the timestamp fields was "3/6/2005 3:00:00 PM".
After the move the value of the same field is now
"06/03/2005 15:00".
In my program I have the following code:
Dim timestamp
timestamp = rs("timestamp")
"select strdate = datediff(day, '"×tamp&"', getdate())"
This SELECT statement was working fine on the previous server.On the new server, I get problems with some values; for instance, I get the following error when the timestamp value is "28/02/2005 16:58:00"
-----------------------------------------------------------
[Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of a char
data type to a datetime data type
resulted in an out-of-range datetime value.
-----------------------------------------------------------
Thanks in advance for your help.
Vias