
Have you ever wondered how to change the collation for a database in SQL Server?
Well the other day I received a database from a third party supplier and the first step was to change the Collation of the database. My questioning about why they would supply the database in the incorrect collation setting was met with a wall of silence. Therefore I had to put in my documentation how to change the Collation of the database.
I did it the quick way by right click on database > Select properties > options > Select appropriate collation from dropdown menu next to Collation.
That was a good enough solution at the time but for my documentation I would always add the T-SQL so that anyone could follow the guide without making mistakes.
Below is an example of how to change the Collation via T-SQL
ALTER DATABASE AdventureWorks2012 COLLATE SQL_Latin1_General_CP850_BIN
Please let me know whether you found this guide useful and leave a message in the comments.
Originally published at https://parvtheitgeek.com on April 26, 2015.