如何在SQL Server中更改语言和日期格式? [英] How to change the language and date format in SQL Server?
问题描述
我正在使用SQL Server2005。当我执行 DBCC用户操作
时,我看到的语言为romana,日期格式为 dmy
。
I am using SQL Server 2005. When I execute DBCC USEROPTIONS
, I see the language as romana and dateformat as dmy
.
我希望语言为 us_english
,并且dateformat为 mdy
。
I want the language to be us_english
and dateformat as mdy
.
我该怎么做?我最初有这些设置,但不知何故将它们更改为罗马。
How can I do this? I was having these settings initially but somehow they got changed to romana.
如何还原回 us_english
并以 dmy
?
推荐答案
您可以使用以下语法重置语言
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
即使重新启动SSMS,此更改仍将保留
This change will persist even after you restart your SSMS
这篇关于如何在SQL Server中更改语言和日期格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!