SQL Question

boerbende

Ben
Local time
Tomorrow, 00:01
Joined
Feb 10, 2013
Messages
339
Hello,


Access 2010 run under Windows 8.1

I have a table with a memo field called "DescriptionLogg". In this memofield I store the word "tataaaa" which does not mean anything but was just for testing.

I tried coincidentally to find the record with a query (SQL in code or with the querybuilder) by searching on:
descriptionlogg like "*tata*" -> result = 0 record
descriptionlogg like "*tataa*" -> result = 1 record
descriptionlogg like "*tataaa*" -> result = 0 record
descriptionlogg like "*tataaaa*" -> result = 1 record

Not trying to lose my faith in SQL I tried it with a different random word
"teteeee" (which does not mean anything either)
descriptionlogg like "*tete*" -> result = 1 record
descriptionlogg like "*tetee*" -> result = 1 record
descriptionlogg like "*teteee*" -> result = 1 record
descriptionlogg like "*teteeee*" -> result = 1 record

Who knows why this difference occurs?

Thanks

Ben
 
Norwegian alphabet is probably the culprit. The sql is confused about when an aa is one letter (å), and when it is a literal aa. If you tell it to use English then the confusion will go away, presumably.

Read about database sort order and how to change it here http://www.fmsinc.com/TPapers/intaa/index.html
 
Last edited:
Brilliant!!!!!!! It is not visible that this happens, but I am convinced :-)

That somebody from outside Norway must tell me that it is (again) the language which works against me ;-)
 

Users who are viewing this thread

Back
Top Bottom