Good afternoon,
I'm getting very frustrated trying to do something that should be 'by default' or easy to configure within PowerDesigner 16.5 working with a SQL Server 2008 R2 database.
I reverse-engineered a database into a physical model for modifications and I want to generate DDL from the physical model. I've worked around some issues including how to support SQL Server filtered indexes and a few others things.
However a really stupid think that I have not been able to figure out is how to have the script respect dependencies between objects in the model. When looking at the model at the Dependencies table the dependencies seem to be in place correctly. But when I choose the 'Generate Database...' menu item to generate a single script to create all of the objects within a database it does create them all but in alphabetical order which does not work because there are dependencies between objects (views, in particular) that requires specific views to be created in a different order depending on their dependencies.
Most tools understand the dependencies and create a script that will work.
How can I generate a database script from PowerDesigner that respects the dependencies between the objects (in this case between different databse views) so they get scripted out in the correct order.
Thanks much,
Don