Solved

kill a query in management studio

Posted on 2008-06-10
2
1,113 Views
Last Modified: 2012-06-22
Is there a better way to kill a runaway query being executed in the Management Studio than just exiting out of it?
0
Comment
Question by:dwiseman3
  • 2
2 Comments
 
LVL 13

Expert Comment

by:rickchild
Comment Utility
From Management -> Activity Monitor you can kill queries.

You can also see locks, and CPU & IO usage etc.
0
 
LVL 13

Accepted Solution

by:
rickchild earned 500 total points
Comment Utility
If you look at the bottom right of the query window the query you are currently running will have a Process ID in brackets next to the logged in username.

You may notice other Process ID's in Activity Monitor though, which are related to the query you are running, such as SELECT INTO tempDB, this is temporary page storage used by your query.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now