For the user using the database connection - SQL user - set the language to English.
This parameter is specific to the user of the SQL connection issuing the query.
One way to check if this is a problem ... Run this in Management Studio and log in as the SQL user who issues the query
SET LANGUAGE English SELECT CAST('2012-12-31' AS DATETIME)
If this works, set the default language for the SQL user accordingly.
source share