Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6132937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:09:50+00:00 2026-05-23T17:09:50+00:00

I am looking for a way to pull XML from a SQL database and

  • 0

I am looking for a way to pull XML from a SQL database and shred the XML via SSIS in bulk. I currently have a package that can pull XML from the database and pass the XML to a stored procedure, via variable, for shredding but this only works 1 record at a time. When processing 100,000 records, this can become quite time consuming.

I would like to shred multiple XML values at once using SSIS. Is this possible with SSIS? Perhaps something in a Data Flow Task where all the XML values are selected from a source then passed to a parser of some sort?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:09:51+00:00Added an answer on May 23, 2026 at 5:09 pm

    So after a lot of searching and thinking about the problem, I redesigned the stored procedures that did the shredding. Instead of shredding a variable being passed into the stored procedure, I just shredded from the XML column itself. This allowed me to shred many XML values at once instead of looping and passing them to a stored procedure one at a time. This gave me the performance boost I was looking for. So instead of something like this…

    SET @xmlData = CAST(@xmlMessageData AS XML)
    
    SELECT
       , row.value('xmlNode1[1]', 'BIT' )                   AS Column1  
       , row.value('xmlNode2[1]', 'NVARCHAR(255)')          AS Column2
       , row.value('xmlNode3[1]', 'BIT' )                   AS Column3
       , row.value('xmlNode4[1]/Name[1]', 'NVARCHAR(255)' ) AS Column4
    FROM @xmlData.nodes('xmlRootNode') AS T1(row)
    

    I now do this…

    SELECT
       , row.value('xmlNode1[1]', 'BIT' )                   AS Column1  
       , row.value('xmlNode2[1]', 'NVARCHAR(255)')          AS Column2
       , row.value('xmlNode3[1]', 'BIT' )                   AS Column3
       , row.value('xmlNode4[1]/Name[1]', 'NVARCHAR(255)' ) AS Column4
    FROM [ESBMessagesData] D
    CROSS APPLY
        [DataItem].nodes('xmlRootNode') AS T1(row)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to pull a specific line from a number of table that have
I am looking for a way to pull the first 100 characters from a
I'm looking for a way to pull the last characters from a String, regardless
I'm looking for a way to easily package and distribute a module that would
I'm looking for a way to pull user (eg. inetOrgPerson) information in a federated
I am looking for an efficient way to pull the data I want out
I'm looking for way to PHP to detect if a script was run from
I'm pretty new to C++ and was looking for a good way to pull
From another forum I found the following example: I was looking for a way
I have a large table, 1B+ records that I need to pull down and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.