Skip to content
Advertisement

Insert repeating tag xml data to multiple sql table columns

I’m having following XML and query.

header tags are there and Item tag can be repeated up to 10 tags. I want to insert those item no and qty in separate columns. Here I mentioned only 2 tags for Item but in real situation there are 5 tags in XML. So in worst case scenario it will be 50 columns. Is there any easy way to loop and insert those item data rather than inserting one by one to columns?

Thank you

Advertisement

Answer

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement