Hello,
I am an XML novice. I have an XML document as shown below:
<Snapshot subscriber = 1002 company = 001>
<Snapshot-Table1>
<row>
<t1col1>row1 col1 data</t1col1>
<t1col2>row1 col2 data</t1col2>
<t1col3>row1 col3 data</t1col3>
</row>
<row>
<t1col1>row2 col1 data</t1col1>
<t1col2>row2 col2 data</t1col2>
<t1col3>row2 col3 data</t1col3>
</row>
</Snapshot-Table1>
<Snapshot-Table2>
<row>
<t2col1>row1 col1 data</t2col1>
<t2col2>row1 col2 data</t2col2>
<t2col3>row1 col3 data</t2col3>
<t2col4>row 1 col4 data<t2col4>
</row>
<row>
<t2col1>row2 col1 data</t2col1>
<t2col2>row2 col2 data</t2col2>
<t2col3>row2 col3 data</t2col3>
<t2col4>row 1 col4 data<t2col4>
</row>
</Snapshot-Table2>
</Snapshot>
There will be multip SQL server dbs and I need to load the above into multiple tables in an SQL Server Db according to subscriber id and company id. The table structures also may be different across the databases. I can separate the doc into multiple documents according to the destination tables. To use the Bulk XML loading COM component I need to create an XML Schema xml document. Is there any method to derive such an XML Schema document by referring to the database and the table?
Thanks in Advance
Start Free Trial