I have several SQL Server 2012 SSIS packages 1 and 2, which perform Business logics of DW.
I have plan to run packages with SQL Server Agent Job.
If package 1 is successfull, package 2 is run.
We run these Jobs every night. No matter what happened in previous night, we run each night again.
Now I have need to add validation logic.
If Stored procedure return value 1, then run package 1.
If SP return value 0, then stop running job.
I wish to implement validation package to own SSIS package. Let call this as package 0, but it is okay as well if Agent call SP directly.
What is best practise for implementing and running validation logic?
Specially I need help to design how to implment logic where job is stopped if SP return value 0.
Should I do with some task inside package 0 or could Agent Job handle this?
Kenny_I