DROPCLEANBUFFERS scope?

  • When I run CHECKPOINT along with DBCC DROPCLEANBUFFERS, what is the scope? Is it clearing the buffer for the database I specified or for the whole SQL instance?

    Thanks,

    -Tim

  • It's going after the instance. Why would you do that?

    I mean, for testing purposes, fine, but I wouldn't suggest running that in production.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • The checkpoint is database-specific, the drop clean buffers drops every single clean page from the entire data cache.

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

    Thanks for the info and yes I am testing the performance of a query. I was hoping to be able to test a separate DB on the same istance without effecting the production DB. Oh well. Off to the test environment.

    Thanks again,

    -Tim

  • Never test on the production server. Ever.

    That's what dev/test environments are for.

    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
  • @gilamonster -

    Thanks for both posts.

    All the best,

    -Tim

  • Timothy Straub (4/13/2011)


    Grant -

    Thanks for the info and yes I am testing the performance of a query. I was hoping to be able to test a separate DB on the same istance without effecting the production DB. Oh well. Off to the test environment.

    Thanks again,

    -Tim

    Heck yes, off to the test environment.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Grant Fritchey (4/13/2011)


    , off to the test environment.

    *Totally irrelevant thought*

    .. to the TestMobile Batman!

    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

Viewing 8 posts - 1 through 7 (of 7 total)

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