Why does Server ignore the ₾ symbol ?
Why this:
print iif(N'₾' = N'', 'true', 'false')
is the same as:
print iif(N'₾2' = N'2', 'true', 'false')
What role does collation play in this situation and what is happening under the hood?
Why does Server ignore the ₾ symbol ?
Why this:
print iif(N'₾' = N'', 'true', 'false')
is the same as:
print iif(N'₾2' = N'2', 'true', 'false')
What role does collation play in this situation and what is happening under the hood?
It looks to me that this is an issue related to the Unicode version when the character was introduced and the type of SQL Server collation that is used:
false in all collationsfalse in the old collations (for example Latin1_General_CI_AS), but it returns true in the collations introduced in SQL Server 2008 (for example Latin1_General_100_CI_AS)true in most collations, but it returns false in the collations introduced in SQL Server 2017 (for example Japanese_Bushu_Kakusu_140_CI_AS_VSS)true in all collations (except BIN collations)true in all collations (except BIN collations)