Ooooo.... be really careful here. Yes, it avoids killing things that are "Runnable" but it does not avoid killing things that are running but have simply been suspended to "wait their turn".

Further, killing any spid should be an absolute resort never mind killing them en masse`. You can leave a whole lot of spids in a "0% rollback status" that sometimes consumes much CPU trying to figure out that it has nothing to do. Actual rollbacks can take a whole lot longer than you ever thought, as well. It can also mess with connection pooling and more.

--Jeff Moden"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."