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 8679627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:01:15+00:00 2026-06-12T21:01:15+00:00

I have to shred the xml contents (transaction xml ) into some 7 tables.

  • 0

I have to shred the xml contents (transaction xml ) into some 7 tables. The approaches i’d in mind is

a) Single SP, use OPENXML and traverse through the xml contents and update the required tables.
b) Load xml in Xdoc and make a entity objects and update the required tables.

XML is big in size and has around 1000+ nodes.

Which is the best approach of the above two?

  • 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-06-12T21:01:16+00:00Added an answer on June 12, 2026 at 9:01 pm

    SQL Server has had XQuery since version 2005. That’s the preferred way to work with XML nowadays and has been for a long time.

    OpenXML has many limitations and issues, one of the biggest is the possibility of memory leaks when you don’t dispose of the handle properly.

    Just picking on one StackOverflow sample question and one Google result:

    • https://stackoverflow.com/questions/966441/xml-query-in-sql-server-2008
    • Shred XML data with XQuery in SQL Server 2005
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

basically i have parsed some data from XML into a NSMutableArray that is shared
I'm trying to shred XML files that have an unusual layout, because items are
I've been looking at some of the xml files excel generates and have found
I have an issue where I must shred multiple xml datasets from multiple providers
I read this already: The Best Way to shred XML data into SQL Server
I have some XML that I need to show. It would be perfect if
I need help inserting xml files into SQL Server 2008. I have the following
I have to shred around 25 - 30 XMLs into my SQL Server 2005
i have two maven projects, project A contents some serializable model objects and project
So I have some XML in the following format: <somenode> <html xmlns=http://www.w3.org/1999/xhtml> <head> <title/>

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.