I'm looking for a procedure to transform a DB running on SQL Server 12.0.4100.1 from collation SQL_Latin1_General_CP1_CI_AS
to collation SQL_Latin1_General_CP1_CS_AS
The database is about 330GB in size and in the end needs to be moved from a server with server collation SQL_Latin1_General_CP1_CI_AS
to another server with collation SQL_Latin1_General_CP1_CS_AS
. As the database actively uses tempdb, it is imperative that everything is transformed properly.
So far, my research shows these steps:
ALTER DATABASE [dbname] COLLATE SQL_Latin1_General_CP1_CS_AS
ALTER TABLE [tablename] COLLATE SQL_Latin1_General_CP1_CS_AS
- (Update based on answers)
ALTER TABLE [tablename] ALTER COLUMN [columnname] COLLATE SQL_Latin1_General_CP1_CS_AS
But is this sufficient? Are any alterations necessary to the existing data, or is that comprised in the 2 previous steps?