hi we run 2014 std. and develop in vs 2013.
our pkgs are still in msdb, not the catalog.
i need to set up a sql agent job that runs a package every 5 minutes conditionally. The condition is based on the results of a query. I dont know if/how dtexec can be run from t-sql.
these seem to be my options...
- two jobs , 1st calls/starts 2nd based on condition (i know how to do this)
- 1 job, 2 steps, 1st step aborts if condition isnt met, i kind of like this because it could alert me to another problem
- conditionally exec dtexec from 1st step (t-sql) of one job but i dont know the syntax and thus far cant find it on the web
- control the condition from within the pkg but i hate coupling things like this in a pkg where in the future i might want to also run this pkg stand alone unconditionally in certain situations