Do "Execute SQL Server Agent Job Task" in SSIS, run synchronously or asynchronously in SSIS?
(a) Synchronous: Meaning does the job trigger and Wait till completion, then go to the next step,
(b) Asynchronous: Or does it just trigger it, and immediately go to next step?
It runs asynchronously - fire and forget
Here's how you can easily verify this behavior.
SQL Agent Job
This job executes a TSQL Command called
WAITFOR
. I specify wait for 15 seconds. Run the job by itself and in 16 seconds or less, you should have an entry in the job history report showing the job ran successfully.SSIS package
I created an SSIS package, added a task of type
Execute SQL Server Agent Job Task
and pointed it at the server and job. I ran it and whoosh the package completed successfully in under two seconds.