Solved

How Do I Loop Through XML Datatype Within SSIS?

Posted on 2008-06-09
1
993 Views
Last Modified: 2013-11-30
I have a SQL table that contains a column of type XML.  This column stores data in XML format that represent a row that needs to be uploaded to another server.  I need to have Integration Services read from this table and process each row.  Since row contains 1 XML column which will contain X amount of "rows".  Each row needs to be processed individually.

So... read table which has X amount of rows.  For each row read XML in column and loop through each Node which represents a given row.  Process/Insert the data within the XML (as parameters for another stored procedure).

I am hitting a wall here.  XML Source requires a variable or physcial file.  I am not sure how to do this with data from a SQL table of type XML.  Any ideas/help?
0
Comment
Question by:agorsky73
1 Comment
 
LVL 31

Accepted Solution

by:
James Murrell earned 500 total points
ID: 21755338
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how the fundamental information of how to create a table.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now