Solved

sql server  - Database Collation and Server Collation Different

Posted on 2009-07-02
4
303 Views
Last Modified: 2012-05-07
I have just restored a copy of a database created by a third party company on a second server so I can test it.

When I ran into the inevitable problems, the 3rd party support guy looked at it and said that I should expect problems because the database collation (SQL_Latin1_General_CP1_CI_AS) was different from the server collation (Latin1_General_CI_AS). He said that if I reconciled the server collation to the database collation (not the reverse) it would be just fine.

I am familiar with the concept of collation but have the following questions:

1. How to change the server collation to SQL_Latin1_General_CP1_CI_AS ?

2. Why might it matter that the two are different?

I don't want to change anything if I don't have to as rumour has it that the process is rather messy.

TIA

Hopeful Kiwi
0
Comment
Question by:kiwi_731
  • 2
  • 2
4 Comments
 
LVL 31

Assisted Solution

by:RiteshShah
RiteshShah earned 210 total points
ID: 24763586
if you want to change collation of sql server itself, follow the below link

http://blogs.digineer.com/blogs/jasons/archive/2007/10/18/change-sql-server-collation.aspx

if you want to change collation of only one database than

alter database dbname collate SQL_LATIN_GENERAL1_CI_AS
0
 

Author Comment

by:kiwi_731
ID: 24858580
Hi Ritesh

Sorry about the long delay, due to the fact that I am dependent on other people to put the changes through for me.

I will assign points as soon as I know how they have got on.

Hopeful Kiwi
0
 

Accepted Solution

by:
kiwi_731 earned 0 total points
ID: 24983098
Hi Ritesh

The IT people have finally come back. I posted them the link http://msdn.microsoft.com/en-us/library/ms179254(SQL.90).aspx from one of the comments under the thread that you mentioned , and they managed OK. They created a separate server instance with the corrected collation as there was already another database on the physical server which they didn't want to disturb.

Thanks for your help.

Hopeful Kiwi
0
 
LVL 31

Expert Comment

by:RiteshShah
ID: 25011494
glad to know that you are now free from this problem.

Ritesh Shah

http://www.SQLHub.com 
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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