Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1013209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:03:57+00:00 2026-05-16T10:03:57+00:00

Is there a way to stop a SQL Server 2000 DTS (not SSIS) package

  • 0

Is there a way to stop a SQL Server 2000 DTS (not SSIS) package that is currently running, programmatically using C#?. I think the package can be executed using the COM API, but I couldn’t find a way to stop a running package. thanks in advance.

Update: there is a method in SSIS to get a list of running packages and a method to stop them. but I couldn’t find an equivalent one for DTS packages in COM object API.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:03:58+00:00Added an answer on May 16, 2026 at 10:03 am

    Here are a few options:

    1. If you are running a DTS package in a job, then you can stop the running job with sp_stop_job.

    2. If you know the SPID of the process for the DTS package, you can issue a KILL command to the SPID and that will stop the DTS package execution. One possible way to identify the SPID is to find the SPID in the master.dbo.sysprocesses table by some identifying piece of information and then issue a KILL command for the SPID. Here’s a set of code that I tested by setting the Connection Properties -> Advanced -> Application Name to I Want To Kill This SPID.

      DECLARE @TEST INT;

      SET @TEST =

      (SELECT MAX(SPID)

      FROM master.dbo.sysprocesses

      WHERE program_name IN (‘I Want To Kill This SPID’));

      IF @TEST IS NOT NULL

      BEGIN

      DECLARE @KILL_COMMAND NVARCHAR(100);

      SET @KILL_COMMAND = ‘KILL ‘ + CONVERT(NVARCHAR(100), @TEST);

      EXEC sp_executeSQL @KILL_COMMAND;

      END

      The downside of the above approach is that it only works on killing packages that have database connections. If you are using a DTS package that does not connect to the host server, then there won’t be a killable SPID. If there are multiple SPIDs, this also won’t kill them all. You may have to modify the code to build a list of SPIDs to kill. Then there is the fact that you have to set the Application Name. You may want to set unique values for each DTS Package so that you don’t accidentally kill the wrong package. The default value appears to be set to DTS Designer which would be bad to kill if multiple packages are running on the server.

    3. You might be able to start and kill DTS 2000 packages using extended stored procedures, but I am not 100% sure this is feasible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to stop MS SQL Server listing databases for a user
In the context of MS SQL Server 2005 Is there a way to stop
Is there any way to stop or terminate long running Oracle query in JDBC
Is there any way to stop the user resizing the form? Currently I am
Is there any way to stop polling server in SignalR? I want to stop
Is there any way to stop a running loop inside another method or insert
I would like to stop power users from deleting data using SQL Server Management
Is there a way to immediately stop execution of a SQL script in SQL
Is there any way to stop animation in iOS 3 ? I know about:
Is there a way to stop the path showing in a source code tab

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.