SQL Server default character encoding

david99world picture david99world · Mar 3, 2011 · Viewed 204.6k times · Source

By default - what is the character encoding set for a database in Microsoft SQL Server?

How can I see the current character encoding in SQL Server?

Answer

ThomasMcLeod picture ThomasMcLeod · Mar 3, 2011

If you need to know the default collation for a newly created database use:

SELECT SERVERPROPERTY('Collation')

This is the server collation for the SQL Server instance that you are running.