Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need to export SQL for creating table(s) from Enterprise Architect

I need to create SQL statements from Enterprise architect v.9 table description, since I need "CREATE TABLE" to be placed in a text file.

Please advice me where to look in EA interface!

like image 710
onkami Avatar asked Dec 16 '22 07:12

onkami


2 Answers

In the diagram where your tables are designed, select all of them and right click in one of the tables. Look for SQL Code Generation and choose one of the options: single DDL script or not.

The difference is that in the single script all create table statements will be generated in only one file (which is usually better!)

like image 158
Pedro Dusso Avatar answered Dec 17 '22 20:12

Pedro Dusso


After open your database diagram,

  1. Look at Tools tab and expand Database Engineering menu,
  2. Select Generate Package DLL,
  3. Enter output file name and generate it.
like image 43
Mustafa Kemal Avatar answered Dec 17 '22 21:12

Mustafa Kemal