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

looping through the xml files in a folder, and loading into respective tables in ssis

$
0
0
Hi,  I have a folder XMLdata, sub folders 115,545,560.

The  xml data files are C:\XMLData\ 115\abc1.xml, C:\XMLData\ 115\abc2.xml,

C:\XMLData\ 545\abc1.xml, C:\XMLData\ 545\abc2.xml,

C:\XMLData\ 560\abc1.xml, C:\XMLData\ 560\abc2.xml,

Need to loop through each file in folder  with Foreach loop container, and get the file name say abc1, and load the data of all  abc1.xml to abc1 table in sql server DB.

next iteration will pick up the all abc2.xml and find the abc2 table in sql server DB then insert the data in abc2 table.

while each iteration, xml source should also point each xsd file correspondingly. How can i do this

Nagaraj


Viewing all articles
Browse latest Browse all 24688

Trending Articles