SQL Azure 整理

SQL Azure Collation

如果您要在 SQL Azure 中构建新数据库,您会使用哪种排序规则?

SQL_Latin_General_CP1_AS_AI or Latin_General_AS_AI?

我问的原因是 SQL Azure 上的默认排序规则是 SQL_Latin_General_CP1_AS_AI,如下所述:

https://azure.microsoft.com/en-gb/documentation/articles/sql-database-general-limitations/

但是

如果您查看有关排序规则的 MSDN 文章,它指出,

SQL Server supports Windows collations. SQL Server also supports a limited number (<80) of collations called SQL Server collations which were developed before SQL Server supported Windows collations. SQL Server collations are still supported for backward compatibility, but should not be used for new development work. For more information about Windows collations, see Windows Collation Name (Transact-SQL).

取自:https://msdn.microsoft.com/en-GB/library/ms180175.aspx

这表明不建议将 SQL 归类支持用于新数据库开发,但这与 SQL Azure 归类默认为 SQL_Latin 的事实相冲突。

感谢人们对此的看法。

谢谢。

对我来说,答案取决于您计划在数据库中托管什么。如果有问题的应用程序需要 SQL 排序规则,那么您显然别无选择,如果不需要,那您就可以走了。

我不认为存在矛盾,文档指出:

SQL Server also supports a limited number (<80) of collations called SQL Server collations which were developed before SQL Server supported Windows collations. SQL Server collations are still supported for backward compatibility, but should not be used for new development work.

这里的关键部分是"still supported for backward compatibility"。许多基于服务器的应用程序需要 SQL 排序规则,并且正在更新以删除该要求。

总结: 这完全取决于您要部署的应用程序。如果您不需要 SQL 排序规则,则不要使用排序规则,因为文档表明这只是为了向后兼容。