I have moved the domain of my SQL Server and while everything is mainly working the date format for queries seems to have changed.
So if I run this:
select convert(datetime,'2012-02-13')
I get
Msg 242, Level 16, State 3, Line 1
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
When I run
select @@Language, @@Langid
I get
British | 23
I have tried to set sp_defaultlanguage but this seems to make no difference.
I have also checked the regional settings in control panel and that seems to also be set to British.
Even this code sample causes a problem:
set language british
select convert(datetime, '2012-02-13')
With the result
Changed language setting to British. Msg 242, Level 16, State 3, Line 3 The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.