Iwas Bornready (5/16/2016)
Don't know why I didn't find this sooner. Thanks.
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.
is pronounced ree-bar and is a Modenism for R
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair
How to post code problemsHow to post performance problemsForum FAQs