Re: changing collations
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Mon, 19 Dec 2005 23:00:05 +0000 (UTC)
Sai (sbillanuka@xxxxxxxxx) writes:
> We have around 150 databases as case sensitive, and we are planning to
> change it to case insensitive. Each database has around 180 tables, I
> have changed the collation on DB, but changing collation manually on
> each column is a daunting process. Is there any script or tool which
> can assist in doing this.
I would probably bulk out data, and build the databases from scripts and
bulk back.
If you want to use ALTER TABLE, I think you still need to script all
indexes, as you cannot change the collation on an indexed column, if I
recall correctly. You could run queries on the system catalog to generate
ALTER TABLE ALTER COLUMN command. I'm not including this right now, as I
am in bit of hurry.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: changing collations
- From: Sai
- Re: changing collations
- References:
- changing collations
- From: Sai
- changing collations
- Prev by Date: changing collations
- Next by Date: Periodic run of stored procedure
- Previous by thread: changing collations
- Next by thread: Re: changing collations
- Index(es):
Relevant Pages
|