When I try running...
SELECT * FROM Users WHERE Username = 'ae'
it returns matches where the username is æ (ash character).
I was wondering if there's a way to support characters like the ash character but get an exact match for what I'm looking for.
I'd like to search for ae and get just ae, not ae and æ
I'm using SQL Server 2008 and SQL Server 2008 R2.
This doesn't seem to happen with SQL collations
;with Users As
(
select 'æ' as Username UNION ALL SELECT 'ae'
)
SELECT *
FROM Users WHERE Username = 'ae' collate SQL_Latin1_General_CP1_CI_AS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With