I'm using SQL Bulk Load with SQL Server 2000, to load an XML file into a table in the database. There is one input field that I want to load into two different columns in my table. But I can't figure out how to set up the XSD file to do this.
I've tried specifying the element twice with two different sql fields:
<xsd:element name="Id" type="xsd:string" sql:field="AccountId"/>
<xsd:element name="Id" type="xsd:string" sql:field="FolderId"/>
This gave the following error:
Schema: unable to load schema... An error occurred... The element: 'Id' in <all> is already defined.
I've also tried specifying the element once with two different sql fields:
<xsd:element name="Id" type="xsd:string" sql:field="AccountId" sql:field="FolderId"/>
This gave the following error:
Duplicate attribute.
Any help would be appreciated. Thanks!
Start Free Trial