Hi there,
I am getting the following error when casting the date '24/08/2007 10:40:00' in the sql below:
select cast('07/04/2009 14:57:00' as DATETIME)
ok
select cast('24/08/2007 10:40:00' as DATETIME)
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
Is this to do with the sql server data format set. Can this be set in the server without using:
SET DATEFORMAT dmy
Thank you
I am getting the following error when casting the date '24/08/2007 10:40:00' in the sql below:
select cast('07/04/2009 14:57:00' as DATETIME)
ok
select cast('24/08/2007 10:40:00' as DATETIME)
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
Is this to do with the sql server data format set. Can this be set in the server without using:
SET DATEFORMAT dmy
Thank you