contains - Unwanted conversion of latin letters in sql functions -
i'm using ms-sql db , have field saved in db nvarchar type. use linq sql in following way:
var names = namestable.where(n=>n.name.contains("acções"));
this query returns names containing: acçoes/ accoes or other combination. seems sql doesn't recognize latin special letters different english ones.
how can solve problem?
in sqlserver can set "collation" per column. (i think) it's "accent sensitive", case appears "accent insensitive". see says collation, if ends on "ai", it's indeed accent insensitive. need "as" "accent sensitive".
and further have "ci" (for "case insensitive") or "cs" (for "case sensitive").
Comments
Post a Comment