Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Basics of XML and SQL Server, Part 3: Transform and Shred XML in SSIS Expand / Collapse
Author
Message
Posted Wednesday, March 21, 2012 12:08 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, December 17, 2014 2:02 PM
Points: 130, Visits: 946
Comments posted to this topic are about the item Basics of XML and SQL Server, Part 3: Transform and Shred XML in SSIS
Post #1270013
Posted Wednesday, March 21, 2012 6:47 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, December 17, 2014 2:02 PM
Points: 130, Visits: 946
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/
Post #1270129
Posted Wednesday, March 21, 2012 2:10 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Thursday, December 18, 2014 11:33 AM
Points: 493, Visits: 650
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
Post #1270491
Posted Wednesday, March 21, 2012 7:50 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, December 17, 2014 2:02 PM
Points: 130, Visits: 946
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.
Post #1270584
Posted Wednesday, March 21, 2012 8:02 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Thursday, December 18, 2014 11:33 AM
Points: 493, Visits: 650
Thanks for the quick reply,

Sounds good. Look forward to it.

Alan
Post #1270587
Posted Thursday, March 22, 2012 10:38 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: 2 days ago @ 12:27 AM
Points: 542, Visits: 805
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!


Post #1271049
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse