Hi Joe,
It's probably easier is I give you a set of scenarios and tell you what the
expected results in each case will be:
For each scenario, assume that I started with Table1 and Table2, which are
related to each other. I exported Table1 to XML (table1.xml) and selected
the option in the dialog to also export Table2 using the "Related Tables"
list.
Scenario1: Import table1.xml into my database and use the options to append
the data to the existing Table1 and Table2. (Assume there won't be any weird
key conflicts) The existing relationships between Table1 and Table2 are
preserved.
Scenario2: Import table1.xml in my database and use the option to import
structure and data, which is going to create two new tables. I end up with
tables named Table11 and Table21 (since Table1 and Table2 already exists),
there are no relationships between Table11 and Table21, but all the data is
there.
Scenario3: Import table1.xml into a blank database. I end up with Table1 and
Table2, but there are no relationships between the tables.
So the short answer is that there is no relationship information included in
an XML file, even when you choose to export schema. Since that information
is not in the file, it can not be recreated from the file.
Regards,
Mike Wachal
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.