SSIS Package with variables for Multiple Excel files

  • I've a simple SSIS package with a ScriptTask and SendEmailTask. ScriptTask is used to simply OPEN an EXCEL file (for eg filename.xls) in a certain location and RE-SAVES it to the same location. Once the file is resaved, SendEmailTask sends and email.

    I've used two valiables in this package such as FilePath and EmailToGroups.

    There is a SQL jobs that runs every morning at 6 am to execute this package.

    Now, I'm getting 4 more new excel file in this location. So, I was wondering instead of creating 4 new packages, is there a way to do this with one single package?

    Any guidance or suggestions is much appreciated.

    Thanks in advance

  • You should be able to accomplish this by:

    1) Using a For Each Loop Container. This will allow you to use your current 2 variables and not have to add any others.

    or

    2) Add more "FilePath" (and "EmailToGroup" if necessary) variables to hold the values of each of your new files.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply