We have an nvarchar and have noticed that some extended/special characters are being identified as the same as other characters, for example the same as SS
When using varchar and collation Latin1_General_CI_AS they are identified as being the same
SELECT distinct val from (values (''),('SS') ) x(val) RESULT ------
When using collation SQL_Latin1_General_CP1_CI_AS, they are determined as distinct
SELECT distinct val COLLATE SQL_Latin1_General_CP1_CI_AS from (values (''),('SS') ) x(val) RESULT ------ SS
But when using nvarchar, they are again identified as the same
SELECT distinct cast(val as nvarchar) from (values (''),('SS') ) x(val) RESULT ------
Can anyone suggest a setting to allow us to identify these as distinct? These values are coming in from SSIS where they are identified as distinct but they're hitting a unique index
constraint once loaded to SQL Server.