Kill The Sessions

  • Comments posted to this topic are about the item Kill The Sessions

    Thanks
    Vinay Kumar
    -----------------------------------------------------------------
    Keep Learning - Keep Growing !!!

  • Don't know why I didn't find this sooner. Thanks.

  • 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.

    --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.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply