Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: FrostScYthe on May 03, 2007, 06:01:47 pm
-
Is it posible to generate SQL code from a Model of tables in Enterprise Architect?
-
I wonder what you intend with that. However, the code generation templates could well be used to also generate SQL.
-
First, make sure you have selected the package containing the model in the Project Browser. Also make sure that you have not selected one of the tables in your model diagram (or the SQL will be limited to that table only).
From the main menu choose Project | Database Engineering | Generate Package DDL. Fill out the dialog.
This should get you started.
David
-
Oh. If that's what he means by SQL Code...
-
No sure Thomas. But if that is what he meant and he did not have a package selected, the results would fit the description given.
-
Any chance of customizing the output of the SQL? There are additional attributes that EA does not use when generating that we need to include.
-
Often asked for, but no action yet.
Perhaps in 7.0, but that's just part of my wish list.
David
-
Or you come back to my first response...
-
Quite correct Thomas, as always.
This issue blew up on my current project (yet again) today.
We live in hope...
-
So does anyone on the community have SQL templates they are willing to share with the rest of us? I have never EA, and am still learning, so this would help me get on my way faster.
-
Quite some have talked about this here on the board. Don't know who ever started with that. But I think if you are forced to do it, creating a code gen tamplate should not be too difficult. There are some build-in templates which could be copied and modified for this purpose. But you would need to learn it.
Btw.: anyone from Sparx who could tell us why DDL is created NOT by code gen template but instead by some completely different wizzardry?