How could I change the SQL Server 2008 R2 Express Default Collation for the whole server and a particular database?
Is there a way to do it using visual interface of SQL Server Management Studio? In the Server Properties window (and in the corresponding Database Properties window), this property is not available for editing.
Best Answer
Yes.
You can change the default collation of SQL Server 2008 R2 express instance and individual databases, but it is a complex task.
Sadly, there is no visual option to do it via SSMS.
Setting and Changing the Server Collation - SQL Server 2008
Make sure you have all the information or scripts needed to re-create your user databases and all the objects in them.
Export all your data using a tool such as the bcp Utility. For more information, see Importing and Exporting Bulk Data.
Drop all the user databases.
Rebuild the master database specifying the new collation in the SQLCOLLATION property of the setup command
Create all the databases and all the objects in them.
Import all your data.
Setting and Changing the Database Collation - SQL Server 2008
Set the
COLLATION
option in theCREATE DATABASE
statement while creating a new database.Similarly, set the
COLLATION
options in theALTER DATABASE
statement to change the collation of an existing database.ALTER DATABASE [database_name] COLLATE SQL_Latin1_General_CP1_CI_AS;
Setting and Changing the Column Collation