in sql server, what is: Latin1_General_CI_AI versus Latin1_General_CI_AS

后端 未结 2 1097
不知归路
不知归路 2021-02-13 01:54

i am using SQL Compare to compare two versions of a database. it keeps highlighting differences in the nvarchar fields, where it shows one db that has:

Latin1_Ge         


        
相关标签:
2条回答
  • 2021-02-13 02:09

    What the comparison is showing is that the two columns have difference collations. The collation of a (text) field affects how it is both stored and compared.

    The particular difference in your case is that accents on characters will be ignored when comparisons and sorting is done.

    When you install SQL Server, you set a default collation for the whole server. You can also set a collation per database and per column, meaning that you can mix them within a database (whether you want to depends on your particular case). The MSDN page I linked to has more information on collations, how to choose the best one, and how to set them.

    0 讨论(0)
  • 2021-02-13 02:10

    Accent Sensitive and Accent Insensitive

    Lòpez and Lopez are the same if Accent Insensitive.

    0 讨论(0)
提交回复
热议问题