When writing and working with T-SQL in SQL Server, you'll often come across the number 1033. In many cases, that will have the word English associated with it. But what are these numbers, and which ones does SQL Server know about?
The number 1033 comes from the reference to a Windows Locale ID. You'll find the list of Windows Locale IDs here:
It's a big list with entries that look like this:
Here are the entries for English:
Notice that 1033 is the default English locale and it's the one for the United States. (Much to the dismay of my English friends in the UK who actually thought they owned the language, that their dialect would be the default, and the US version would just be a variant).
Anyway, how do we relate these to SQL Server, and which ones does it know?
We'll find these in the sys.syslanguages system view (wrapped for clarity):
Notice that it shows the names of the months and days, and has a mapping from the lcid locale ID values across to the language IDs that are used in the sys.sysmessages (which contains the error messages that come from SQL Server):