We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

spid stuck in ROLLBACK

dbaSQL
dbaSQL asked
on
Medium Priority
1,781 Views
Last Modified: 2008-01-09
I killed a spid earlier - it's command is currently KILLED/ROLLBACK and has been for a very long time.  (couple hours, plus)
the cputime and disk i/o are very minimal and haven't changed at all, subsequent attempts to kill the spid return this:

spid 1: transaction rollback in progress.  Estimated rollback completion: 100%.  Estimated time remaining: 0 seconds.

but, status is RUNNABLE
and certain retrievals are actually blocked by this spid
 
very important, please advise as soon as possible
Comment
Watch Question

Only way I have been able to clear this is to stop and start SQL Server. :(

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
so you've seen this before then?  do you know what causes it?  a restart isn't feasible right now at all.
I've had two cases when it happened.

1.) A stored procedure was stuck in an infinite loop.  Killing the spid stopped the infinite loop but the process stayed around until I did a stop\start.

2.)  I was copying DTS packages from one msdb database to another msdb database on another server.  The copy was being done via a trigger that had a misspelling in the table name.  The trigger would not end and both msdb databases were hung until I stopped/started SQL Server.

These were both stupid mistakes I made while trying to do something "quick". :(   Fortunately the number of users at the site was small so no real problem with the stop/start.

Commented:
I have also seen this with xp_ procedures (xp_cmdshell, etc). These are external stored procedures that run in the SQL Server address space, but SQL Server does not have any knowledge or control of them.

DonKronos is right - you will have to stop/start the service to clear this spid out.

Author

Commented:
well, unfortunately i can't do that right now.  but thank you both for your advice
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.