Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Collation Error on s2000 Upgrade

Author  Topic 

Aspenbat
Starting Member

4 Posts

Posted - 2007-11-07 : 10:56:09
I have upgraded many of my servers from 2000,SP2 to 2005. Whilst doing 1 server I have the following error message:

Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation..To continue, correct the problem, and then run SQL Server Setup again.

I have tried to search in many places for this error whilst upgrading but found none, please help.

anonymous1
Posting Yak Master

185 Posts

Posted - 2007-11-07 : 11:05:17
the database collation and column collation are likely different. if this is a test enviroment you can check the database and change it to other one mentioned in the error message.

ALTER DATABASE report2 COLLATE SQL_Latin1_General_CP1_CI_AS

you may have problems if the database has functions already created and dependant on that database collation. ultimately you need to decide what collation you want for the database and the tables. if they will not be the same you will need to add COLLATE statements to prevent the error you are receiveing, if they will be the same then it is a matter of getting everything converted over to the correct one. please post your progress
Go to Top of Page

Aspenbat
Starting Member

4 Posts

Posted - 2007-11-07 : 11:11:16
As the error message comes up whilst I am carrying out the upgrade it does not tell me which database has the error. I have 138 databases on this server !
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-11-07 : 12:21:40
If you have a test environment you could try installing "plain" SQL 2005, and Attaching each database and seeing if you get any complaint during the Attach

"I have 138 databases on this server !"

That isn't going to make this approach popular!

Kristen
Go to Top of Page

anonymous1
Posting Yak Master

185 Posts

Posted - 2007-11-07 : 12:53:52
without knowing the query or even database the query is in, it will be difficult to find the collation difference. can you restore the databases to another sql 2000 server then run drop/create scripts for each to rule out the possibility of this problem pre-existing the upgrade?
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-11-08 : 00:49:00
Does the Upgrade Advisor say anything?
Go to Top of Page

Aspenbat
Starting Member

4 Posts

Posted - 2007-11-08 : 05:17:41
Thank you all for your help.

Kirsten - I am not familiar with the Upgrade Advisor, please expand.

When it fails upgrade, I can go back to the log and have found this

SQL Server Setup has encountered the following problem:
Failed to execute the Transact-SQL statement: CREATE PROCEDURE sp_sqlagent_get_perf_counters
@all_counters BIT = 0
AS
BEGIN
SET NOCO...
Script file: sqlagent90_msdb_upgrade.sql
The error was: [Microsoft][SQL Native Client][SQL Server]Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.. To continue, correct the problem, and then run SQL Server Setup again.

Now am I to believe the problem is in the msdb database as that is the script which runs and then falls over ? If so then I cannot change the Collation of a system database so does this mean I have to detach all databases and rebuild the master ? or does soemone have a special magical method to overcome this.

Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-11-08 : 13:52:11
"I am not familiar with the Upgrade Advisor, please expand"

Tool available for download from Microsoft which lists possible migration issues - such as reference to system fields which have changed from INT to BIGINT (to name just one example)

Lets see if that reveals anything useful first.

There might be direct a link to it in this thread:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Migrating+to+SQL+2005+Hints+and+Tips

Kristen
Go to Top of Page
   

- Advertisement -