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.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs