Does the weekday number changes according to server/database regional configuration in SQL Server (2005+)?
Sql-server – Does the week day number changes according to localization in SQL Server
sql serversql-server-2005
Related Question
- Sql-server – ISO Week vs SQL Server Week
- SQL Server – How to Change @schedule_uid to Recreate Agent Job
- SQL Server – Not Using Allocated Memory
- Sql-server – SQL Server Audit not tracking changes at the database level
- SQL Server Floating Point – Why Allow float(53) Outside Specified Range?
- SQL Server 2012 – Patching Failure Due to Language Mismatch
Best Answer
The weekday number is controlled by the
SET DATEFIRST
setting.http://msdn.microsoft.com/en-us/library/ms181598.aspx
This setting is changed when the
SET LANGUAGE
setting is changed.Returns
And
Returns
You can find the
DATEFIRST
setting for each language by queryingsys.syslanguages
view and referencing thedatefist
column.http://msdn.microsoft.com/en-us/library/ms190303.aspx