IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: twynne
About
User Name: twynne
Forum Rank: Newbie
Real Name:
Location Fayetteville, AR
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Wednesday, April 8, 2009
Last Visit: Wednesday, April 8, 2009 3:02:35 PM
Number of Posts: 1
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Show in new SQL Editor command Create
Posted: Wednesday, April 8, 2009 3:02:34 PM
So far I'm loving the product, I had a question though about being able to generate the creation script via the Show in new SQL Editor command. Basically I'm selecting multiple tables and right clicking on them, selecting 'Show in new SQL Editor' and then selecting 'Create'

This gives me the sql to create all my tables. From what I can tell though, the CONSTRAINT commands are included within each table... although this is technically correct, I can't use this script to recreate my database because certain constraints reference tables that haven't been created yet. There are 2 possible solutions here:

1. Make sure that the order of table creation is done in a manner where the tables that are need have already been created. (Not even sure if that is possible).

2. Don't include the constraint information in the Create statement.. rather, after all the tables have been created, ALTER the tables to include the constraint.

Of course, I could be missing something in the app that already does this and if so, please point me the way. Thanks,
Thomas

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.