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


SQL SERVER 2005 Collation


SQL SERVER 2005 Collation

Author
Message
aspirant.dba
aspirant.dba
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 Visits: 113
Friends,
I have a Database on a Development Server with collation Settings
"SQL_Latin1_General_CP1_CI_AS" . Now i moved this Database to Newly installed Test Server. But Collation of the Test Server is "Latin1_General_CI_AI".
I am trying to execute the Stored Procedures with input parameters.
This is giving the following Error
"Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AI" in the equal to operation. "

So, as the collation is different ,i tried to change the collation of System Databases ( Master, Model. Temp, MSDB) to
"SQL_Latin1_General_CP1_CI_AS".
It is not allowing to Alter that Collation changes.
Can anybody tell whether it is possible to change system Databases Collation or any other method to fix this problem.
Sopheap Suy
Sopheap Suy
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1067 Visits: 357
I think you might have to re-install it with the old collation name. I am not sure if you could just run the install and made the collation selection change. I am sure you could uninstall and then re-install since it is a new box with nothing on it.


Sopheap



ChiragNS
ChiragNS
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2409 Visits: 1865
Hi

If you do not want to reinstall then you can change the collation of the database. Whenever you create a new db you will have the server collation as the default and you will have to change it.

"Keep Trying"
Claudia-343424
Claudia-343424
Valued Member
Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)

Group: General Forum Members
Points: 50 Visits: 64
I had the same problem, I couldn't change the collation and I've learned to do

select * from tableA join tableB on tableA.fieldA collate [....] = tableB.fieldB

or


select * from tableA where fieldA in (Select fieldB collate [....] from tableB)

I hope this helps!
Deepak-405225
Deepak-405225
SSC-Addicted
SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)SSC-Addicted (406 reputation)

Group: General Forum Members
Points: 406 Visits: 598
You can rebuild system databases in Sql 2005 and specify the collation as well using the below command,

start /wait CD or DVD Drive\setup.exe /qn INSTANCENAME=MSSQLSERVER REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=NewStrongPassword SQLCOLLATION=NewSystemCollation

But before proceeding with that you need to script all the logins, jobs, take a backup of all your dts packages and to be on the safer side take a full backup of all the user databases as well. After rebuilding check the collation of the system databases and see if they are as desired. Then run the scripts to recreate all the logins, jobs etc..

- Deepak
Animal Magic
Animal Magic
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1064 Visits: 13728
just for info those 2 collations are kinda the same settings, however you get one when the default language of the machine is set to US and the other when its correctly (assuming your in the UK) been set to UK.
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