Sql-server – Are SQL Collations per Instance or per Database

sqlsql serversql-server-2008sql-server-2008-r2

I have a single SQL Instance, let's say MSSQLSRV – is the collation per Instance, i.e. every database in the given instance has the same collation, or are collations set per database? i.e. multiple collations per instance.

Best Answer

Per database. The instance level collation defines the default collation for the entire instance but you can set it independently at the database level if you want to override the default.

EDIT:
In response to your comment:

You can check the collation by looking at the database properties in SSMS (right-click the database, get properties, it's on the General page) or by executing this TSQL statement:

SELECT DATABASEPROPERTYEX('MyDatabase','Collation') AS DbCollation

(replace MyDatabase with the name of the database you want to check)