Home SQL Server SQL Server 2005: How to Find Out Current Database SQL Collation
SQL Server 2005: How to Find Out Current Database SQL Collation

Occasionally you may need to find out your database collation to fix bugs and etc. Here's how:

There are two ways to get your database collation.

Solution 1:

Run the below script in Microsoft SQL Server Management Studio - query editor:

SELECT DATABASEPROPERTYEX('AdventureWorks', 'Collation') SQLCollation;

ResultSet:
SQLCollation
————————————
Latin1_General_CI_AS

SQLCollation


Solution 2:

Use the Microsoft SQL Server Management Studio GUI to find out the dabatabase collation.

1. Right click on the database -> Properties.

2. Under Maintenance Section look for the property Collation then you will see the database collation.

SQLCollation-2

So you can use either one to find out the database collation.

 



Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

"