Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Collation.

Status
Not open for further replies.

knopmike

Programmer
Sep 6, 2001
12
CA
I have a few databases that were imported from another SQL Server 2000 that I need to change the collation sequence for.

I'm aware of the alter database command, but after executing this command, the database collation changed but all of its tables still had the old collation sequence.

Is there any easy way to change a database's collation sequence as well as all of its tables?

Thanks Mike.

 
See the topic "Changing Collations" in SQL BOL.

Available online at:

The article explains that changing the database collation doesn't change the collation for existing columns. It does explain how to change column collation as well as the limitations. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Thanks for your help, however I don't have much experience writing scripts and it would take a long time to create a script for every column of every table of the databases I need converted.

Any additional help anyone could provide would be appreciated.

Thanks.

Mike

 

Consider this process.

1) Script the objects from the existing databases
2) Modify the scripts to use the correct collation
3) Create new databases with the correct collation
4) Create objects using the corrected scripts
5) Use DTS to transfer the data from the old tables to the new tables. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top