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