Solved

Adding an alternate language/region

Posted on 1998-03-05
4
346 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

762 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

18 Experts available now in Live!

Get 1:1 Help Now