SQLXMLBULKLOAD Nested Element Types in XSD Complex Types 2008R2 Problem


I am experiencing problems trying to import a simple XML file content into a SQL2008 R2 table.

The source content follows the SQL schema below. The table is represented in XML by a XML parent complex type of an "Order" element of type order whose CHILD named element of type (ORDER_DETAILS) with elements representing a history of mapped CodeId's (note EndDate is optional - the current code has no end date).

Any help would be appreciated - I really do not want to have to go down the route of needing to transform the source XML file using XLST.

Note: Apologies for schema format, its trial software and didn't want to waste time!

alt text

more ▼

asked Dec 16, 2013 at 11:40 AM in Default

avatar image

0 1 1 1

(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Dec 16, 2013 at 11:40 AM

Seen: 802 times

Last Updated: Dec 16, 2013 at 11:40 AM

Copyright 2018 Redgate Software. Privacy Policy