• GilaMonster (6/17/2013)


    Jeff Moden (6/17/2013)


    then you could use TRUNCATE instead of DELETE and that will be minimally logged.

    Technically truncate is fully logged. It just logs the page deallocations like a drop table does rather than the rows as delete does.

    Agreed. I probably shouldn't have used the words "minimally logged" here but the effect is nearly the same.

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