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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -