Solved

tempdb process- to cancel it

Posted on 2013-10-22
2
342 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

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

831 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