Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Changing server/db collation


Changing server/db collation

Author
Message
Jake Shelton
Jake Shelton
SSC-Enthusiastic
SSC-Enthusiastic (181 reputation)SSC-Enthusiastic (181 reputation)SSC-Enthusiastic (181 reputation)SSC-Enthusiastic (181 reputation)SSC-Enthusiastic (181 reputation)SSC-Enthusiastic (181 reputation)SSC-Enthusiastic (181 reputation)SSC-Enthusiastic (181 reputation)

Group: General Forum Members
Points: 181 Visits: 916
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
SQLBlimp
SQLBlimp
SSC Eights!
SSC Eights! (820 reputation)SSC Eights! (820 reputation)SSC Eights! (820 reputation)SSC Eights! (820 reputation)SSC Eights! (820 reputation)SSC Eights! (820 reputation)SSC Eights! (820 reputation)SSC Eights! (820 reputation)

Group: General Forum Members
Points: 820 Visits: 495
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.
mosaic-287947
mosaic-287947
SSC Veteran
SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)SSC Veteran (220 reputation)

Group: General Forum Members
Points: 220 Visits: 807
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search