SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Basics of XML and SQL Server, Part 3: Transform and Shred XML in SSIS


Basics of XML and SQL Server, Part 3: Transform and Shred XML in SSIS

Author
Message
Stan Kulp-439977
Stan Kulp-439977
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1688 Visits: 1131
Comments posted to this topic are about the item Basics of XML and SQL Server, Part 3: Transform and Shred XML in SSIS
Stan Kulp-439977
Stan Kulp-439977
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1688 Visits: 1131
Part 1 can be found here: http://www.sqlservercentral.com/articles/XML/87539/

Part 2 can be found here: http://www.sqlservercentral.com/articles/XML/87685/
Alan-314321
Alan-314321
SSC Eights!
SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)

Group: General Forum Members
Points: 892 Visits: 827
Thanks Stan for the great post,

One thing I found with SSIS and XML is it is relatively easy to deal with the simple xml but very hard when working on the complex xml. We have resolved to SQLXMLBulkLoad and hand coded the link between XML element/attributes in the XSD.

Since I don't know much about XSL, not sure how good the XSL transformation is with the complex XML.

My definition of the complex XML: has multiple parent-child hierarchies, one example is xml containing company, customer, transaction and statement data.

Have you used your solution on the complex xml in the past?

Alan
Stan Kulp-439977
Stan Kulp-439977
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1688 Visits: 1131
In Part 4, I show how to stream an XML invoice which has multiple parent-child hierarchies very similar to what you are talking about. In Part 5 I show how to stream and send invoices to multiple vendors from an SSIS package. I am writing Part 6 right now, which shows how to shred an invoice, just as you are asking. In part 7, which I haven't started yet. I will show how to shred multiple incoming invoices each having distinct schemas.

Part 4, coming out next week, gives you in inverse view of how to handle shredding. It will probably give you a pretty good idea of where I am headed.

Hope this helps.
Alan-314321
Alan-314321
SSC Eights!
SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)SSC Eights! (892 reputation)

Group: General Forum Members
Points: 892 Visits: 827
Thanks for the quick reply,

Sounds good. Look forward to it.

Alan
Misha_SQL
Misha_SQL
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1364 Visits: 1010
Great article and so easy to read, even though I don't work with XML much. Now I know how do it if I ever need to. Thank you!



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search