How to change default language for SQL Server?

后端 未结 4 1254
时光说笑
时光说笑 2020-12-01 03:17

Now when I query

SELECT @@language

it gets \'us_english\'. But I need russian.

I can\'t use SET LANGUAGE russian for

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 03:31

    Using SQL Server Management Studio

    To configure the default language option

    1. In Object Explorer, right-click a server and select Properties.
    2. Click the Misc server settings node.
    3. In the Default language for users box, choose the language in which Microsoft SQL Server should display system messages. The default language is English.

    Using Transact-SQL

    To configure the default language option

    1. Connect to the Database Engine.
    2. From the Standard bar, click New Query.
    3. Copy and paste the following example into the query window and click Execute.

    This example shows how to use sp_configure to configure the default language option to French

    USE AdventureWorks2012 ;
    GO
    EXEC sp_configure 'default language', 2 ;
    GO
    RECONFIGURE ;
    GO
    
    • Configure the default language Server Configuration Option

    The 33 languages of SQL Server

    | LANGID |        ALIAS        |
    |--------|---------------------|
    |    0   | English             |
    |    1   | German              |
    |    2   | French              |
    |    3   | Japanese            |
    |    4   | Danish              |
    |    5   | Spanish             |
    |    6   | Italian             |
    |    7   | Dutch               |
    |    8   | Norwegian           |
    |    9   | Portuguese          |
    |   10   | Finnish             |
    |   11   | Swedish             |
    |   12   | Czech               |
    |   13   | Hungarian           |
    |   14   | Polish              |
    |   15   | Romanian            |
    |   16   | Croatian            |
    |   17   | Slovak              |
    |   18   | Slovenian           |
    |   19   | Greek               |
    |   20   | Bulgarian           |
    |   21   | Russian             |
    |   22   | Turkish             |
    |   23   | British English     |
    |   24   | Estonian            |
    |   25   | Latvian             |
    |   26   | Lithuanian          |
    |   27   | Brazilian           |
    |   28   | Traditional Chinese |
    |   29   | Korean              |
    |   30   | Simplified Chinese  |
    |   31   | Arabic              |
    |   32   | Thai                |
    |   33   | Bokmål              |
    

提交回复
热议问题