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


Collation Setting Changes


Collation Setting Changes

Author
Message
sbalaven
sbalaven
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: 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
Minaz Amin
Minaz Amin
Right there with Babe
Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)Right there with Babe (738 reputation)

Group: General Forum Members
Points: 738 Visits: 1750
The best and safest way is to reinstalling the SQL Server with required collation.

other stepSad 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"
Alan Brownlow
Alan Brownlow
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: 369
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
Brandie Tarvin
Brandie Tarvin
SSCrazy Eights
SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)

Group: General Forum Members
Points: 9473 Visits: 8826
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 AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
george sibbald
george sibbald
SSCertifiable
SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)

Group: General Forum Members
Points: 7300 Visits: 13687
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

---------------------------------------------------------------------
mehmetguzel
mehmetguzel
SSC-Enthusiastic
SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)SSC-Enthusiastic (126 reputation)

Group: General Forum Members
Points: 126 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
Cliff Jones
Cliff Jones
SSCarpal Tunnel
SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)SSCarpal Tunnel (4.1K reputation)

Group: General Forum Members
Points: 4107 Visits: 3648
Yes, as the previous poster just pointed out, in SQL 2005 the Collation can be set at the database and column level as well.
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