Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to pull the values from XML file and laod into SQL table using SSIS?

$
0
0
Hi,
I have a xml file with the following format -

<?xml version="1.0" encoding="ISO-8859-1"?>
<StoreGroupControl>
<StoreGroup>
   <Store-Code>00001</Store-Code>
   <GroupName>XXX GROUP</GroupName>
   <OrderType>1</OrderType>
   <Country>USA</Country>
</StoreGroup>
<StoreGroup>
   <Store-Code>00002</Store-Code>
   <GroupName>YYYY GROUP</GroupName>
   <OrderType>2</OrderType>
   <Country>USA</Country>
</StoreGroup>
<StoreGroup>
  <Store-Code>00003</Store-Code>
  <GroupName>YYYY GROUP</GroupName>
  <OrderType>1</OrderType>
  <Country>USA</Country>
</StoreGroup>
</StoreGroupControl>

How do I pull the Store-Code,GroupName,OrderType,Country column values from this file and load it into a relation table which has colums like this.

Store-Code
GroupName
OrderType
Country

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>