Drop & Truncate

  • Some people say Truncate & Drop are also fullly logging operations but some people are saying these are minimally logged operations. Which is right?

  • They're fully logged operations.

    http://www.sqlservercentral.com/articles/Recovery+Model/89664/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • ramana3327 (12/21/2013)


    Some people say Truncate & Drop are also fullly logging operations but some people are saying these are minimally logged operations. Which is right?

    What people refer to as "Fully Logging" and "Minimally Logged" operations varies a whole lot from person to person (although Books Online is quite explicit in what MS defines as "Minimally Logged"). I really don't like either expression because of the technical semantics involved and the confusion they have caused.

    I strongly recommend you read the article that Gail provided a link to because it explains the answer to your very question in the second paragraph. You should read the rest of the article, too.

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

  • Thank you

  • Thanks.

Viewing 5 posts - 1 through 4 (of 4 total)

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