如何在SQL Server中更改语言和日期格式? [英] How to change the language and date format in SQL Server?

查看:225
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆