Hi
I have a SQL 2005 server that is in New Zelaand - the New Zealand date format is DMY.
Currently if I execute print GetDate() I get Sep 17 2007 10:34AM
and trying the following
print cast('2007-09-16' as datetime)
results in
Msg 242, Level 16, State 3, Line 1
The Conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
I need to setup the defaults to handle the cast above, but I do not know where to start.
Chris