How to generate SQL tables from ER diagram in Power Designer 15?

aden picture aden · May 22, 2011 · Viewed 26.4k times · Source

I want to generate Sql tables from ER diagram in Powerdesigner ,but ,I don't know how can i do that? Which Tools i should use?

Answer

pascal picture pascal · May 23, 2011

I guess you have a Conceptual Data Model to represent your ER diagram.

You first need to generate a Physical Data Model from it, using Tools > Generate Physcical Data Model, picking the specific DBMS you want to use, Microsoft SQL Server 2008, available for PD 15.0 and up.

And then generate the script using Database > Generate Database as mentionned in the first comment.

The need to convert the ER diagram into a Physical DAta Model, is that the ER diagram could use some concepts which need to be resolved before going to SQL; and miss some concept specific to the databaase implementation (like performance indexes).