I’ve recently installed SQL Server 2008 and I selected collation as case sensitive. I want to make it case insensitive for the entire instance (not for a database in that instance). If I change the collation does it affect any existing databases? if so in what way?
I’ve recently installed SQL Server 2008 and I selected collation as case sensitive. I
Share
You basically need to run the installation again to rebuild the
masterdatabase with the new collation. You cannot change the entire server’s collation any other way.See:
Update: if you want to change the collation of a database, you can get the current collation using this snippet of T-SQL:
This will yield a value something like:
The
_CImeans “case insensitive” – if you want case-sensitive, use_CSin its place:So your T-SQL command would be:
You can get a list of all available collations on the server using:
You can see the server’s current collation using: