Hi Everyone,
I want to design an SSIS patch that runs a batch initialization before the ETL task starts. This batch initialization queries the status of the batch process table and determines the next step after the tax.
Below are the logic:
1. If there is no record showing "In Progress" in the batch table, initiate a new batch and set the status to "In Progress" and dont allow any other package to run as well as the status is still "In Progress". Once the initiated process has completed successfully, status change to "Completed".
2. If there is a record showing "In Progress" in the batch table as a result of a package that is stuck or hanged which never completed. Change the status to "Failed" and start a initiate another batch.
Any help will be appreciated.
me