How to change the language and date format in SQL Server?

后端 未结 2 1499
执笔经年
执笔经年 2020-12-14 11:46

I am using SQL Server 2005. When I execute DBCC USEROPTIONS, I see the language as romana and dateformat as dmy.

I want the language to be

相关标签:
2条回答
  • 2020-12-14 12:21

    You can reset the language by using the below syntax

    set language 'us_english'
    

    In order to view all the languages and their date format try this one

    select * from sys.syslanguages
    

    If you need to permanently change the language then

    • Go To Security
    • Logins
    • Right Click on your username and select Properties
    • Change the default language to English

    This change will persist even after you restart your SSMS

    0 讨论(0)
  • 2020-12-14 12:27

    Before

    DBCC USEROPTIONS
    

    is returning something like this:

    Current user options


    To change your or UserLogin configuration run:

    USE [master]
    GO
    
    ALTER LOGIN [UserLogin] WITH DEFAULT_LANGUAGE=[us_english]
    GO
    

    Next - reconnect to SQL (logout -> login).

    After

    You will get this:

    Current user options

    0 讨论(0)
提交回复
热议问题