Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Mauricio Moya (Arquesoft) on May 09, 2019, 07:50:40 am

Title: Changing collation of t_object.Name in SQLServer
Post by: Mauricio Moya (Arquesoft) on May 09, 2019, 07:50:40 am
Hi. We pretend to allow the EA search to find the elements (or packages, or diagrams) even when the name is not exactly wrote. In Spanish we use accents for the vowels and we need EA can find elements writing or not the accents.

For example: if we find in a Simple search "produccion" we want the same results as searching "producción".

In SQLServer it is supposed to change the collation of the column Name of table t_object (ignoring the simple search also search into Notes and alias).

After changing only the collation of the column we were unable to access the model from EA (it doesn't load in the project browser and displays an error about some UNION and the collation problem when loading the data).

The question is: do you know a better approach to get the desired behavior? Have you done something similar to this? any ideas? maybe changing all columns collation?
Title: Re: Changing collation of t_object.Name in SQLServer
Post by: skiwi on May 14, 2019, 02:03:52 pm
I'm interested in the answer to this too.
Our SQL Server data has collation set to case_insensitive and accent_insensitive. But mācrons are treated differently anyway.


I guess you could add your own queries, e.g. SELECT name FROM t_objectable t_object  COLLATE Latin1_General_CI_AI WHERE ...