Solved

tempdb process- to cancel it

Posted on 2013-10-22
2
344 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

761 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