Solved

How Do I Loop Through XML Datatype Within SSIS?

Posted on 2008-06-09
1
998 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 31

Accepted Solution

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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 to SQL Server 2016 24 54
Replace statements HTML with HTML IF 8 62
invoke-sqlcmd help 5 29
Report 8 26
In this article I will describe the Copy Database Wizard 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.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

737 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