September 23, 2016 at 6:56 am
Use this at the beginning of your code:
SET DATEFORMAT DMY;
You probably have your server configured incorrectly, using the U.S. defaults.
September 23, 2016 at 10:55 pm
Thanks Luis, that did the trick 🙂
When you say "You probably have your server configured incorrectly, using the U.S. defaults. ", where is this configuration option?
September 26, 2016 at 12:39 pm
PhilipC (9/23/2016)
Thanks Luis, that did the trick 🙂When you say "You probably have your server configured incorrectly, using the U.S. defaults. ", where is this configuration option?
In the GUI, you can find it under the Server Properties window in the advanced tab.
Through code, you can find it in
SELECT *
FROM sys.configurations c
JOIN sys.syslanguages l ON c.value_in_use = l.langid
WHERE c.name = 'default language';
And you can change it with this:
EXEC sys.sp_configure N'default language', N'2' /*Value from sys.syslanguages*/
GO
RECONFIGURE WITH OVERRIDE
GO
September 26, 2016 at 10:25 pm
Thanks Luis.
Viewing 4 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply