SQL Question (1 Viewer)

boerbende

Ben
Local time
Today, 18:37
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
 

spikepl

Eledittingent Beliped
Local time
Today, 18:37
Joined
Nov 3, 2010
Messages
6,142
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:

boerbende

Ben
Local time
Today, 18:37
Joined
Feb 10, 2013
Messages
339
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

Top Bottom