Solved

kill a query in management studio

Posted on 2008-06-10
2
1,116 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
ID: 21752691
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
ID: 21752700
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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