sql server 2005 - SQL 'Like' operator and 'aa' -


We've stumbled upon a very strange problem in one of our applications to compare a bunch of the seach engine filters Uses a stored procedure for However, when a specific type of string is inserted, then SQL Server (2005) behaves very strangely. I have separated the problem from the following:

  Choose 'match!' Whereas '% telia%' like 'telia'  

This Milan is Danish Norwegian CI AS and we have letters that mean the same thing also includes 'A' which means there is one'.

This match will not automatically match "A" with "A".

This will ensure that "one" is sorted correctly, but this option will not change . In the same way "SS" vs. "ß" in German, for example

You have to clear the data in one way or the other.

  SELECT REPLACE ('teliå', 'a', 'aa'), / * ... or * / REPLACE ('telia', 'a', 'a')  

edit, May 2013

I think a is guessing that match with A does not eat. Although it sorts properly

  DECLARE @ foo TABLE (bar varchar (2)) INFER Foo VALUES ('ab'), ('a'), ('aa), ( 'One'), ('za'); SELECT * FROM @foo ORDER BY bar COLLATE Danish_Normfo_CI_AS; SELECT * FROM @foo WHERE bar COLLATE Danish_Norwegian_CI_AS = 'A';; SELECT * FROM @foo WHERE bar COLLATE Danish_Norwegian_CI_AS = 'a'; SELECT * FROM @foo WHERE bar COLLATE Danish_Norwegian_CI_AS = 'A';  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -