Solved

tempdb process- to cancel it

Posted on 2013-10-22
2
336 Views
Last Modified: 2013-11-04
i was running something in tempdb for testing purpose by creating a temp table.. since it took more than a few seconds, i cancelled it.. but now after an hour, it is still saying 'canceling query...'.. how can i see what is going on? will this affect tempdb for other database usage?
0
Comment
Question by:25112
2 Comments
 
LVL 38

Assisted Solution

by:Jim P.
Jim P. earned 250 total points
ID: 39593181
About the only thing it should do is grow the size of the tempdb. If it it is really bad you need to find the process ID it was running under and kill it.
0
 
LVL 26

Accepted Solution

by:
Zberteoc earned 250 total points
ID: 39594033
run an statement like:

exec sp_who2 active

and see which is the spid that is running that cancelling in tempdb. You can kill it with:

kill spid_number

you can also try to close that window from where you executed the query and say yes when the pop-up comes out. Cancelling usually rolls back the transactions although I am not sure why in tempdb would take so long. Maybe is just an UI issue and the process actually finished.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
replication - alerts? 4 30
Troubleshooting Methodology - steps 3 36
Delete Trigger in SQL Server2008R2 5 20
Ssis not sending failure message 2 7
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

912 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

18 Experts available now in Live!

Get 1:1 Help Now