|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, October 28, 2008 6:50 AM
Points: 31,
Visits: 50
|
|
Hi
How to change the collation setting in SQL 2005 server from SQL_Latin1_General_CP850_Bin2 instead of the default server collation SQL_Latin1_General_CP1_CI_AS.
Please let me know the procedure
Balavenkatesh
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Sunday, April 21, 2013 10:57 PM
Points: 535,
Visits: 1,423
|
|
The best and safest way is to reinstalling the SQL Server with required collation.
other step FROM MSDN)
Make sure you have all the information or scripts needed to re-create your user databases and all the objects in them.
>>Export all your data using a tool such as bulk copy. >>Drop all the user databases.
>>Rebuild the master database specifying the new collation in the SQLCOLLATION property of the setup command. For example:
start /wait setup.exe /qb INSTANCENAME=MSSQLSERVER REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=test SQLCOLLATION=SQL_Latin1_General_CP1_CI_AI
>>Create all the databases and all the objects in them. >>Import all your data.
"More Green More Oxygen !! Plant a tree today"
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, April 02, 2013 5:39 AM
Points: 47,
Visits: 293
|
|
| I recomend the bulk copy out of the data. I had to do this to all our dbs (30+) and tried various methods this was the quickest by a long way once you fine tune it in test it can be a pretty automated task
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 10:58 AM
Points: 6,655,
Visits: 5,678
|
|
All the above suggestions are assuming you've already installed SQL Server with the wrong collation.
If you haven't installed it yet, you can change the collation during the install process (assuming you're not using unattended install packages). It actually comes up with a box during install that asks you for all sorts of details, including collation, but you have to watch carefully and not inadvertantly click past it before you've had a chance to change the collation.
Brandie Tarvin, MCITP Database Administrator, MCDBA, MCSA
Webpage: http://www.BrandieTarvin.net LiveJournal Blog: http://brandietarvin.livejournal.com/ On LinkedIn!, Google+, and Twitter.
Freelance Writer: Shadowrun Latchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 4:02 PM
Points: 5,269,
Visits: 11,203
|
|
if you have already instsalled SQL, you can change the collation using setup. See BOL under 'how to install sql server 2005 from the command prompt' then section 'To rebuild system databases and specify a new system collation'
You will then need to re-apply any upgrades you previously had.
old backups of the system databases will no longer be restorable so script out any logins etc from master.
have everything backed up\scripted out before you start
---------------------------------------------------------------------
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, March 20, 2013 7:33 AM
Points: 114,
Visits: 282
|
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 12:39 PM
Points: 3,397,
Visits: 3,405
|
|
Yes, as the previous poster just pointed out, in SQL 2005 the Collation can be set at the database and column level as well.
|
|
|
|