Database Recollation
Database Recollation
I ran the following in the PGAS and QFCPGAS databases to generate re-collation
scripts, then (carefully) ran the results. The index rebuilds in PGAS took a long
time to complete.
Use <dbname>
Go
Go
Also, whenever I do this, I always run it again after it completes. If the proc
doesn’t come back and say something like “No objects require recollation”, it may
need to be run again. Also, just be aware, after dropping all the Fkeys, indexes,
Pkeys, etc., the guts of the generated script is to do an ALTER TABLE ALTER COLUMN
on every single char/varchar column to change the collation. Columns using the text
datatype (there are a few) cannot be altered. For these, that table needs to be
dropped/re-created manually. For these, I use EXEC sp_tus <tablename>. You can just
run its output.
Glen
N:\Database_Admin\Knowledge_Base_for_DBA_Info\SQL Server\Database Collation Change