Accepted date format changed overnight

Posted by Eugene Niemand on Stack Overflow See other posts from Stack Overflow or by Eugene Niemand
Published on 2010-03-16T14:27:42Z Indexed on 2010/03/16 15:41 UTC
Read the original article Hit count: 176

Filed under:
|

Since yesterday I started encountering errors related to date formats in SQL Server 2008.

Up until yesterday the following used to work.

EXEC MyStoredProc '2010-03-15 00:00:00.000'

Since yesterday I started getting out of range errors. After investigating I discovered the date as above is now being interpreted as "the 3rd of the 15th month" which will cause a out of range error.

I have been able to fix this using the following format with the "T".

EXEC MyStoredProc '2010-03-15T00:00:00.000'

By using this format its working fine. Basically all I'm trying to find out is if there is some Hotfix or patch that could have caused this, as all my queries using the first mentioned formats have been working for months.

Also this is not a setting that was changed by someone in the company as this is occurring on all SQL 2005/2008 servers

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server