• GilaMonster (10/2/2015)


    chuck.forbes (10/2/2015)


    You're right, the file isn't 99% unused, it's 99% used. I interpreted that backwards. I can see the need for the checkpoint now.

    Checkpoint won't do anything, you need to take a log backup before you can shrink the file.

    Don't shrink it to zero either.

    Oh, and

    So why are some people suggesting the temporary switch to SIMPLE?

    Usually because the people suggesting it don't really know what they're talking about.

    Just curious as to why you wouldn't shrink it to zero and regrow it properly.

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