Book a Demo

Author Topic: Executing SQL update  (Read 4799 times)

novikovigor

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Executing SQL update
« on: June 21, 2013, 02:04:07 am »
I can execute SQL select with "Model Search" tool.
But how can I execute update and insert commands in EA? Is there fast way to do it?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Executing SQL update
« Reply #1 on: June 21, 2013, 04:02:35 pm »
You can't with the model search.

If you are working with a .eap file you can open that in MS Access to execute update queries, or just use any other generic SQL client.

If you are working on a dbms repository you best use the client for that type of database.

You could also write a script or add-in and use the "hidden" operation Repository.Execute(SQLString) to execute your update queries.

Just be really really careful. It's quite easy to completely destroy your model using SQL ;D

Geert

novikovigor

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: Executing SQL update
« Reply #2 on: June 21, 2013, 08:05:47 pm »
Thank you, Geert! I'll use MS Access.