Author Topic: Changing collation of t_object.Name in SQLServer  (Read 2298 times)

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 341
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Changing collation of t_object.Name in SQLServer
« 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?

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Changing collation of t_object.Name in SQLServer
« Reply #1 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 ...
« Last Edit: May 14, 2019, 02:06:48 pm by skiwi »
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64