Using SQL Server Management Studio, I have backed up a database from one server and restored it to my local copy of SQL Server 2005. But the collation of the backed up database is SQL_Latin1_General_CP1_CI_AI and I am attempting to compare columns to a database which is Latin1_General_CI_AI.
The database has a lot of keys and constraints which makes changing each column individually throw errors.
What is the best way to change the collation of a whole database in SQL Server 2005?
There is no simple way, you must change collation of Db (
ALTER DATABASE), and all columns individually (ALTER TABLE). Maybe there is a ready to use tools, maybe you need to write it youself. Maybe Data Comparison Tool of Visual Studio 2010 can be useful (Data -> Data Comparemenu).