Solved

Adding an alternate language/region

Posted on 1998-03-05
4
366 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

632 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