Solved

Adding an alternate language/region

Posted on 1998-03-05
4
348 Views
Last Modified: 2010-05-18
How do I change the date formats in SQL Server from US to UK english? I have tried adding UK English as a language from the SQL Setup, but it keeps asking for a file COMMON.LOC. I'm not sure where this is found. (Some sort of regional pack maybe?) When I get this working I also want to experiment by adding other alternate languages.
0
Comment
Question by:gordy
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
vvk earned 120 total points
ID: 1090486
You can add any language by executing
insert into syslanguages values(langid, dateformat, datefirst, upgrade, name, alias, months, shortmonths, days)
langid - any unused (default use 0 all other you can find in select * from syslanguages)
dateformat - dmy|mdy|ydm etc.
datefirst - first day of week
upgrade - 0
name - desired name of language
alias -
months - long names of month separated by comma
shortmonths - short names separated as above
days - names of week days separated as above

Also you can set desired data format by function convert in any select statement
0
 
LVL 4

Expert Comment

by:vvk
ID: 1090487
File COMMON.LOC you can create from sqlcomm,loc located in i386 directory of you SQl server distribution media.
0
 

Expert Comment

by:KirkGray
ID: 1090488
Try running the instlang.sql script that comes on the SQL Server Installation CD.

This Script installs lots of different languages, including English (British).

Then all you have to do is use a system stored procedure called sp_defaultlanguage, or something like that anyway.  This SP sets the default language for a particular user.  Use it like so:

sp_defaultlanguage sa,british

this sets the default language for sa to british.

Cheers, hope this helps.

0
 

Author Comment

by:gordy
ID: 1090489
Thanks for your reply. This certainly gave me a good starting point, and from there I've been able to progress further. Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now