Solution: Stopping SSIS package causing "Unable to terminate process (reason: Access is denied)"

I had big problems finding the solution to the message
[Job Name]: Unable to terminate process [pid] launched by step [x] of job [guid] (reason: Access is denied).
that fired when trying to stop Sql server agent jobs running step type "SQL Server Integration Services Package"

Some suggested changing the job owner to sa or troubleshooting access.
These suggestions did not fix it in my environment.

Fix
Change Step type from "SQL Server Integration Services Package" to "Operating System Command", and execute dtexec manually like so:
dtexec /FILE "\"\\your file path.dtsx\"" /CHECKPOINTING OFF /REPORTING E
The options are not relevant for my scenario, it was the type: Operating System Command that fixed it.

Comments

Popular posts from this blog

SSIS: Set parent package variable from child package

How to decrypt stored password from SSMS registered servers

Insert bulk statement does not support recompile (SQL 2017)