SQL SERVER – 2005 – Find Database Collation Using T-SQL and SSMS

This article is written based on feedback I have received on SQL SERVER – Cannot resolve collation conflict for equal to operation. Many reader asked me how to find collation of current database. There are two different ways to find out SQL Server database collation.

1) Using T-SQL (My Recommendation)

Run following Script in Query Editor
SELECT DATABASEPROPERTYEX('AdventureWorks', 'Collation') SQLCollation;
ResultSet:
SQLCollation
————————————
SQL_Latin1_General_CP1_CI_AS

SQL SERVER - 2005 - Find Database Collation Using T-SQL and SSMS collation2

2) Using SQL Server Management Studio

Refer the following two diagram to find out the SQL Collation.
Write Click on Database
SQL SERVER - 2005 - Find Database Collation Using T-SQL and SSMS collation

Click on Properties
SQL SERVER - 2005 - Find Database Collation Using T-SQL and SSMS collation1

Reference : Pinal Dave (https://blog.sqlauthority.com)

SQL Collation, SQL Scripts
Previous Post
SQL SERVER – Difference and Explanation among DECIMAL, FLOAT and NUMERIC
Next Post
SQL SERVER – 2005 – Find Database Status Using sys.databases or DATABASEPROPERTYEX

Related Posts

Leave a Reply