Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


sp_who2 'Active' and hanging tasks issue  sql server

Posted on 2006-03-20
Medium Priority
Last Modified: 2008-02-01

the stored procedure sp_who2 'Active' shows me hanging tasks in SQL,thus if I find a hanging taks,how can I kill the task via script form?

is this possible?

Question by:rutgermons
  • 2
LVL 23

Expert Comment

ID: 16234343
Hi rutgermons,

use Kill {id}

the Id being the ID shown in sp_who2


Kill 15


Author Comment

ID: 16234368
so I can run this from the query analyzer?
LVL 23

Accepted Solution

apresto earned 2000 total points
ID: 16234381
Yep, however you might have a problem killing a process logged in as the same user that started it, if this is the case create another Login and kill it that way, but for now try it in Query Analyser.

It might take some time to rollback if its a large process, so keep an eye

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question