SQL Server 默认字符编码

默认情况下 - Microsoft SQL Server 中为数据库设置的字符编码是什么?

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

如何在 SQL Server 中查看当前的字符编码?

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

推荐答案

如果您需要知道新创建的数据库的默认排序规则,请使用:

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

SELECT SERVERPROPERTY('Collat​​ion')

这是您正在运行的 SQL Server 实例的服务器排序规则.

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

相关文章