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

Running a package for each file

$
0
0

Right now, I have an SSIS package that will run daily. Each day, a new file comes in that has the current date stamp (i.e New_file_YYYMMDD) on it and the SSIS package grabs this flat file and merges it with a table in the database. So basically, I keep track of the file name depending on what the current date is. 

However, instead of running the package once for the new file, I want it to run for every file that's been missed. For example say on Jan 1st, the package was run successfully and on Jan 2nd the SSIS was offline. On Jan 3rd it comes back online and I want it to process the file from Jan 2nd and 3rd...so not just 3rd which is what it does right now. So far, I keep track of the latest file that has been processed. So I can determine that the latest file that's been proccessed came from Jan 1st.

I want to know what the best is to accomplish what I'm trying to do. Is it best to use a normal for loop container? I'm new to SSIS so any help is much appreciated!


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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