⌘BABAKOV.NET Let's code!
100% [dark] [ru]
~/posts $

June 2012

1 total

1 total

Way to set date in MSSQL to be independent of server regional settings.

Here is an example of how you can make a script in MSSQL work correctly with dates regardless of regional settings and date format. I personally implemented it in the following way: In the script, write the date as follows: Where data is a string of the following type: - This is the format of the date indicated by the number 120. Therefore, the server will not confuse the month with the day, etc.

24 views 0 comments 0 likes ./Read →