Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to catch sp_stop_job event inside SSIS package

$
0
0

I have a SSIS package that is running under sql server agent service. The package only contains a script task. The script tasks is implemented as a run-forever-while-loop and should ideally run forever. Sometimes the server must be down for maintenance. For that reason I would like to stop the pacakage gracefully when a sp_stop_job event occur. How do I catch this event inside the script task?

/K.D.P


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>