Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Reading XMLs in a loop

Author  Topic 

rookie123
Starting Member

1 Post

Posted - 2009-05-11 : 15:00:10
Hi,

I have some similar XML files which need to be read in a loop (number of XMLs to be read is not fixed). How can I read them in a loop in SSIS.

Thanks
Rookie

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2009-05-11 : 15:40:41
You will need a For Each Loop container, and within the container under "Collection" choose For Each File Enumerator, and then tell it where the files are.

Jim
Go to Top of Page

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2009-05-11 : 19:35:02
Sorry, I got called away mid posting. You'll also need to set up some variables. Are you familiar with this?

Jim

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-05-12 : 09:56:11
why dont you put xml files in a folder and then use for each loop with file enumerator? see below

http://www.sqlis.com/post/Looping-over-files-with-the-Foreach-Loop.aspx
Go to Top of Page
   

- Advertisement -