Sql-server – How to convert an MS SQL 2005 DB from Collation SQL_Latin1_General_CP1_CI to SQL_Latin1_General_CP1_C1_AS

sqlsql serversql-server-2005

How can I convert an MS SQL 2005 DB from collation SQL_Latin1_General_CP1_CI to SQL_Latin1_General_CP1_C1_AS?

SQL_Latin1_General_CP1_C1_AS does not appear in the list of options when I go to:

  • Right click on the DB and select 'Properties'
  • Options
  • Collation

Best Answer

I think the collation you're looking for is CI, with the letter I, not the number 1. Check the screen again, but if you still don't see it, try running this script with your database name in it:

USE [master]
GO
ALTER DATABASE [MyDatabaseName] COLLATE SQL_Latin1_General_CP1_CI_AS
GO