question

matmar avatar image
matmar asked

Avoid multiple processing of SSIS package (Running package cannot be re-executed)

Hi, I am executing an SSIS package with DTEXEC. How can I prevent that SSIS executes the same package more than once? Example: I double-click on the DTEXEC command, the SSIS package is running, I double-click on the DTEXEC command again --> Now the SSIS package should not be executed because it is already running. Thanks!
ssisparallelism
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Fatherjack avatar image
Fatherjack answered
I think we need more information. Why are you starting it a 2nd time when you dont want to? Surely you start it and wait for it to complete before starting it again. It may be easier to identify that it is running if you add it to a SQL Agent job and then you can see whether the job is running or not.
2 comments
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Right, it would not be a problem with SQL Agent, I understand that. I am doing an SSIS project for a customer and this customer is using a third party scheduling tool called OpCon (unfotunately). You can avoid multiple processing in that scheduling tool like you can do in SQL Agent but it is a very complex tool and always requires a lot of involvement of other consultants. So I thought there must be a very simple way to prevent multiple processing of the same SSIS package at the same time. I thought there must be a flag, an option or something... I can imagine adding "control tables" etc. to check whether a package is running or not but this again would require quite a heavy change to the SSIS design. Isn't there a very simple way to solve that? Thanks a lot in advance for your help...
0 Likes 0 ·
If the scheduling is in a different app then you have a choice to either put the logic in the app or in the SSIS package itself. Putting it somewhere else will just add more chance for confusion
0 Likes 0 ·
matmar avatar image
matmar answered
What do you mean with "put the logic in the SSIS package itself"? Did you think about something like this: Control flow in the beginning of the package which checks the status. If it is Running than quit else Run the package. I hoped there was a simple answer to this question. Is there a package property, an SSIS property or something else which prevents multiple processing?
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.