SET LANGUAGE
language for date names and messages; implicitly sets DATEFORMAT and DATEFIRST
What changes
- Input
- none
- Output or change
- session state
Syntax at a glance
SET LANGUAGE { [ N ] 'language' | @language_var }
Work example
A date or time calculation must use the explicit calendar behavior controlled by SET LANGUAGE.
Test month, week, daylight-saving, and boundary values. Prefer typed date or time-zone conversion over parsing an ambiguous string.
Check your work SET LANGUAGE. The boundary results for SET LANGUAGE match the named locale or time-zone rule and do not depend on a login default.
Open Microsoft Learn for full syntax, permissions, and details for your version.