Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 us_english and dateformat as mdy.

How can I do this? I was having these settings initially but somehow they got changed to romana.

How to revert back to us_english and date as dmy?

like image 919
M Sach Avatar asked Jun 27 '12 05:06

M Sach


1 Answers

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

like image 96
Bohdan Kuts Avatar answered Nov 04 '22 02:11

Bohdan Kuts