Dynamically execute SSIS package.

  • I am trying to figure out how to dynamically execute SSIS package based on file path that are stored in the table. I found some examples online, it won’t work for me for some reason.  The path could be something like this \\ServerName\\SubFolder\Name.DTSX. Most examples I found online has something to do with SQL Server under location. I tried with File System, but it requires connection manager and the connection manager don’t have expression.  I am not sure what options I have. Any suggestions is appreciated. I am using VS 2015

    Thanks

  • Call DTExec, with the relevant parameters (full file path is one of them).

    Take a look here.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • That is one option we cannot do at this time. Is there a way to have SSIS invoke other SSIS package dynamically?

    Thanks.

  • ugh3012 wrote:

    That is one option we cannot do at this time. Is there a way to have SSIS invoke other SSIS package dynamically?

    Thanks.

    Use an Execute Process task to call DTExec?

    I'm guessing that you do not have some sort of aversion to DTExec itself, given that this is the executable which runs SSIS packages?

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • don't know what you tried but for sure you didn't look where you should.

     

    1 - Add new variable - @package - type string

    2  - Add new Execute Package task

    2.1 - Select filesystem - create new connection - enter name of an existing package.

    3 - go to the properties (e.g. right click - properties which should show up on a window - not a popup window) of the connection created above - you have expressions available - change connection string to be from variable above.

    steps 2 to 3 can be executed on a for each loop that populates the variable - or other means if required.

  • frederico_fonseca wrote:

    don't know what you tried but for sure you didn't look where you should.

    1 - Add new variable - @package - type string

    2  - Add new Execute Package task

    2.1 - Select filesystem - create new connection - enter name of an existing package.

    3 - go to the properties (e.g. right click - properties which should show up on a window - not a popup window) of the connection created above - you have expressions available - change connection string to be from variable above.

    steps 2 to 3 can be executed on a for each loop that populates the variable - or other means if required.

    LOL. I feel stupid. I was not expecting the expression to be in that properties section of VS. Many thanks.

     

     

  • And I feel stupid for not having double-checked the obvious solution!

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

Viewing 7 posts - 1 through 6 (of 6 total)

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