Data World

SQL server 2012: Kill SSIS package Execution in Integration Services catalog

Posted by Pramod Singla on June 8, 2015

Problem: How to kill a SSIS package execution in the Integration Services catalog?

Solution: This can be achieved via two methods i.e. using GUI or TSQL. The GUI is very slow in fetching list of active sessions so you can use TSQL to kill the SSIS package session.

Use following script to Kill SSIS package in Integration Services catalog:

–change “YourpackageName” with the actual package name
DECLARE @package_name SYSNAME =‘YourpackageName.dtsx’
DECLARE @execution_id BIGINT

SELECT @execution_id = Max(execution_id)
FROM   ssisdb.catalog.executions
WHERE  package_name = @package_name
AND end_time IS NULL

SELECT @execution_id

EXEC ssisdb.catalog.Stop_operation
@operation_id =@execution_id  


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s