Using SQL Server 2008.I have a table called User which has a column LastLogindata
with datetimeoffset
datatype
The following query works on production server but not on replication server.
select top 10 CAST(LastLoginDate AS DATETIME) from User.
I am getting the following error.The conversion of a datetimeoffset data type to a datetime data type resulted in an out-of-range value.
Thanks
CAST
toCONVERT
get things to work with ODBC again. The JDBC one was just red herring, and wasn't affected. – Disinfest