SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 How to kill a running process
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rama108
Posting Yak Master

109 Posts

Posted - 03/07/2013 :  10:22:39  Show Profile  Reply with Quote
How to kill a running process in 2008?

Thanks.

rama108
Posting Yak Master

109 Posts

Posted - 03/07/2013 :  10:29:54  Show Profile  Reply with Quote
Forgot to mention the details. I was running a stored proc which was taking long time, so I cancelled the query couple of hours ago. It is still showing "Executing...". Tried to KILL the SPID, but not working.

Thanks.
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3661 Posts

Posted - 03/07/2013 :  10:36:03  Show Profile  Reply with Quote
If it was in the middle of a transaction, partial changes will need to be rolled back - that may be the reason. Give it some time.
Go to Top of Page

rama108
Posting Yak Master

109 Posts

Posted - 03/07/2013 :  10:58:50  Show Profile  Reply with Quote
thanks.
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2062 Posts

Posted - 03/08/2013 :  01:54:59  Show Profile  Visit jackv's Homepage  Reply with Quote
Use the query on this link to monitor the rollback - http://www.sqlserver-dba.com/2011/11/monitoring-a-rollback-and-sysdm_exec_requests.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000