I am working on a package to simplify a task that has been running for several years. The current setup is one table that lists the database local to a division in our corporation, within these individual db's there is a table that lists the path for each flat file to be processed which relates to one machine. Within each directory specified by path there are multiple files to process.
I have to store the division and cell id's for each record processed out of the flat files. I'm thinking I can do this in SSIS by using a for loop to iterate divisions, an inner for loop to iterate the machines for that division then finally a for each loop to iterate the files within each directory. I think I can solve keeping track of the division & cell/machine by setting a variable for each of these properties in each trip through the respective loops. My question is if what I'm asking makes sense how do i make it a reality? Also, how can I insert not only the data from the flat file but also the current value of the variables set for division & machine?
Thanks
I have to store the division and cell id's for each record processed out of the flat files. I'm thinking I can do this in SSIS by using a for loop to iterate divisions, an inner for loop to iterate the machines for that division then finally a for each loop to iterate the files within each directory. I think I can solve keeping track of the division & cell/machine by setting a variable for each of these properties in each trip through the respective loops. My question is if what I'm asking makes sense how do i make it a reality? Also, how can I insert not only the data from the flat file but also the current value of the variables set for division & machine?
Thanks