When you use SQL then it is not possible to search for aa when the server is set to Danish-Norwegian sorting.
Example: The sorting is:
Karsten
Kåre
Kaare
When user search for Kaa - Kaare is not found. Karsten is found when searching for Ka and Kåre when searching for Kå.
Filters on *aa* will work.
Any ideas for a solution?
Mvh
Rolf Garde
0
Comments
When filtering, Regular Expressions are used, so it could be found.
You could try to change the collation to "Case Sensitive", but have in mind that this will be quite time consuming and probably will expand your database-size.
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool
I tried - but that didn't help.
Any other ideas. It must be a problem in many installation !?
Rolf Garde
(for search string 'cho') to include all variants of cases. But if you disable this, it will do just
and SQL will find the correct record correctly.
May be this is same case as your, I do not know what does 'aa' mean in you alphabet.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Unfortunately we have 2 versions of the same letter. One is å (a with a ring on top) and the other is aa.
The name Aase - can be spelled with both Åse and Aase - and is not the same name. But SQL understands aa as one letter - and in most cases it is not.
Rolf Garde
What you can do: enable the client monitor with all options enabled, search for the name, verify the resulting query in the client monitor table (whether it is using the correct character) and then copy the query and execute it in the query analyzer
MCP+I, MCSE NT, Navision MCT (2004,2005)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Done - and the Client Monitor writes:
WHERE (("Search Name" LIKE 'K[AªÁÀÃ][AªÁÀÃ]%'))
This Query returns NULL in Qyery Analyzer. The Query
WHERE (("Search Name" LIKE 'KAA%')) returns the correct record.
Is there anything to do about this - or do Microsoft have to be involved?
Rolf Garde
MCP+I, MCSE NT, Navision MCT (2004,2005)
Yes - but that had No effect. Should i try to Disable and then the Client Monitor after?
Rolf Garde
MCP+I, MCSE NT, Navision MCT (2004,2005)
If you enable case sensitivity, it is searching char by char (your fisrt example) and it is wrong in this case. Do not forget that the case sensitivity is on the search dialog and it depends on the DB case sesntitivity too (on the collation used on the DB).
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Rolf Garde
how about disabling the "Find as you type" ? Somehow the client needs to know, how to work with "double-chars", otherwise the regular application would not work as navision doesn't support unicode natively.
So, if you enter char by char, this behaviour seems logical to me, if the "Find as you type" option is enabled. (An option, I disable on a SQL installations for performance reason anyway).
How is Navision dealing with your czech "ch", e.g. if you have a text field with a length of 10 and you enter "ch", you can enter it only 5 times ? If so, then I see this as the basic problem, even without SQL.
You are right, it might depend on the collation already in the state of creating the query, but I would expect the collation to be effective simply when executing the query. In other words, I would not expect Navision to create different queries based on different collations, but simply let the SQL server decide about this, therefore being relevant for the response only (from the navision point of view).
It seems, as if I will face this situation in an actual project with a czech database, too :shock:
If there is no difference with the "Find as you type", I do not see a solution at the moment and it's worth involving Microsoft at this point.
MCP+I, MCSE NT, Navision MCT (2004,2005)
2) It is common in Czech to use Latin 1 sort order with codepage 1250. In this case, ch is sorted as c and h and there is no problem (solution from times of former Navision - solution was promissed many times... :-)).
3) Find as you type will not solve the problem. But it is good to disable it to have better performance.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
In Danish å is equivalent to aa, eventhough in some contexts this is actually different. Because of this, SQL server treats aa as å and the only workaround to this is to uncheck the accent-sensitive and use å to search for 'aa'. Notice that everything will be found except the 'aA' combination.
I am not aware of any other way of dealing with this as of now.
“This posting is provided "AS IS" with no warranties, and confers no rights.”
http://dynamicsusers.net/forums/t/17457.aspx
And here:
http://groups.google.com/group/microsof ... e0f42bac33