Home. 
.

transparent

transparent

transparent

Altova User Forum

Important: this forum was designed to allow Altova users to exchange their experiences with each other; therefore, your question might remain unanswered.
If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Show in new SQL Editor command Create Options · View
twynne
Posted: Wednesday, April 08, 2009 4:02:34 PM
Rank: Newbie

Joined: 4/8/2009
Posts: 1
Location: Fayetteville, AR
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
Rocco
Posted: Monday, September 28, 2009 11:59:14 AM
Rank: Member

Joined: 5/16/2009
Posts: 24
Location: Vienna
Hi twynne,

I just took a try and I found out that it's important the *order* in which you select the table before you call 'Show in new SQL Editor->Create'.
Take a try: if you select first the parent table and then the child then you have a working script.

Cheers!



Rocco
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

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

Powered by Yet Another Forum.net version 1.0.0 RC3 - 9/24/2005
Copyright © 2003-2005 Yet Another Forum.net. All rights reserved.
This page was generated in 0.095 seconds.



transparent
Print
Mail
Digg
delicious
Welcome
.

The Altova User Forum(s) were launched so that our users have the possibility to interact and exchange their experiences regarding Altova's product line with one another. Although the Altova User Forum(s) are moderated by Altova employees and Altova permits support and software engineers to respond to postings, this is NOT a replacement for the regular support mechanism, and accordingly there is no guarantee that a question will be answered. If you need to contact Altova's technical support team please do so by using the online support center. Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova User Forum(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Altova User Forum Terms of Service and the Altova Website Terms of Use

.
.

transparent

transparent