Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Changing server/db collation Expand / Collapse
Author
Message
Posted Thursday, May 1, 2014 10:28 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, July 7, 2014 7:49 AM
Points: 163, Visits: 831
Hi all,

We have a Dev server whose Collation Sequence must match that of our (soon to be ex) production server. Message found ;

"Cannot resolve the collation conflict between sql_latin1_general_cp1_ci_as and latin1_general_ci_as "

I'm told one way to reset is to script all logins/jobs/alerts etc and rerun, detach and reattach the db's, however this is a laborious process.

Anyone know a faster way of synching the Collations?


Cheers,


Jake
Post #1566772
Posted Thursday, May 1, 2014 10:35 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Tuesday, August 26, 2014 2:59 PM
Points: 680, Visits: 324
Jake Shelton (5/1/2014)
Hi all,

We have a Dev server whose Collation Sequence must match that of our (soon to be ex) production server. Message found ;

"Cannot resolve the collation conflict between sql_latin1_general_cp1_ci_as and latin1_general_ci_as "

I'm told one way to reset is to script all logins/jobs/alerts etc and rerun, detach and reattach the db's, however this is a laborious process.

Anyone know a faster way of synching the Collations?


Cheers,


Jake


What you have written is the correct process to change server collation.

See: http://technet.microsoft.com/en-us/library/ms179254.aspx.

Moreover you have to change each user database's collation.

See: http://technet.microsoft.com/en-us/library/ms175835.aspx.

Sorry. Server collation is something that should be a uniform standard within your shop, and should be explicitly set at install time. It is a bear to change collation mid-stream.

Thanks
John.
Post #1566777
Posted Friday, May 2, 2014 1:20 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, September 15, 2014 12:53 PM
Points: 196, Visits: 592
If you really need to go down the route of changing the collation of your database, maybe this utility can help:
http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=12753

It was a lifesaver for a sql2000-to-2008 migration project we recently completed.

Our requirements were different from yours, but we also needed to change the collation of an entire database.
In our case, the old SQL Server 2000 instance / database used SQL_Latin1_General_CP1_CI_AS, and the new SQL Server 2008 instance uses Latin1_General_CI_AS

During the migration we had an automated daily process that:
Restored the latest backup of the old database to the new server.
Ran the query that had been generated with the above utility for the old database against the restored database. This updated the collation of the database and all relevant objects in it.
Ran a series of scripts to raise the compatibility level, reconnect some orphaned users, and other housekeeping/cleanup tasks

On switch-over day we simply stopped the daily restore and pointed our users to the new database.


Post #1567162
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse