SQL Azure排序规则

如果您在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/

如果您查看有关Collat​​ion的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.

这里的关键部分是“仍支持向后兼容性”.许多基于服务器的应用程序需要SQL排序规则,并且只是更新以删除该要求.

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

点赞