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

Foreach Loop Container that goes through folders

$
0
0

Greetings,

I have a directory structure like this:

Root Directory
*Sub-directory1
--File1.txt
--File2.txt
**Sub-directory2
--File1.txt
--File2.txt
**Sub-directory3
--File1.txt
--File2.txt

I have a package that loops through one Sub-directory at a time and load data in a SQL Server table. Each time I need to load the next sub-directory I need to update my FlatFile connection manager, my input folder variable, and my ForEach Loop Container"Folder" path.

Would someone provide feedback in regards to making this package more efficient by having it start at the Root directory and then have it loop through my sub-directories? 

Below is how my package looks.


Thank you in advance,

Jeannette


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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