Solved

Adding an alternate language/region

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

752 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