Book a Demo

Author Topic: SQL object update  (Read 16459 times)

Alexander.Golyshkin

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
SQL object update
« on: April 04, 2025, 03:49:18 am »
How is possible update a note value or other EA object using SQL query. I have tried below query, but looks like it makes  nothing

Code: [Select]
UPDATE t_object SET t_object.Note = 'TEST_NEW' WHERE t_object.Object_ID = 17574

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: SQL object update
« Reply #1 on: April 04, 2025, 11:27:28 am »
If you're talking about Repository.SQLQuery or any place in the UI that allows execution of SQL, EA will not run that statement. We strongly discourage / don't support any modification of the model via direct SQL.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SQL object update
« Reply #2 on: April 04, 2025, 04:30:33 pm »
The best option is to write a script that might use an SQL Query to get the the relevant elements, and then use the supported API to update the elements.

Geert

Alexander.Golyshkin

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: SQL object update
« Reply #3 on: April 08, 2025, 12:57:17 am »
Thnx. I did exactly as you wishes...

Could you also check this question? https://sparxsystems.com/forums/smf/index.php/topic,48954.msg283260.html#msg283260