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

Collation Setting Changes Expand / Collapse
Author
Message
Posted Wednesday, January 16, 2008 2:35 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC 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
Post #443463
Posted Wednesday, January 16, 2008 3:28 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Tuesday, March 11, 2014 3:34 AM
Points: 549, Visits: 1,554
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"
Post #443497
Posted Thursday, January 17, 2008 5:36 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, September 8, 2014 3:18 AM
Points: 47, Visits: 324
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
Post #444248
Posted Thursday, January 17, 2008 5:44 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Tuesday, October 21, 2014 7:28 AM
Points: 5,584, Visits: 6,380
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

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.
Post #444254
Posted Thursday, January 17, 2008 6:41 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 1:38 AM
Points: 5,879, Visits: 13,010
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


---------------------------------------------------------------------

Post #444286
Posted Thursday, January 17, 2008 11:44 PM
SSC-Enthusiastic

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

Group: General Forum Members
Last Login: Wednesday, March 20, 2013 7:33 AM
Points: 114, Visits: 282
ALTER DATABASE YourDatabaseName COLLATE SQL_Latin1_General_CP1_CI_AS

Mehmet GÜZEL
www.mehmetguzel.net


MS SQL Server DBA
www.mehmetguzel.net
Post #444743
Posted Friday, January 18, 2008 2:45 PM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 8:06 AM
Points: 3,966, Visits: 3,645
Yes, as the previous poster just pointed out, in SQL 2005 the Collation can be set at the database and column level as well.
Post #445154
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse