Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
DBCC (Transact-SQL)
 DBCC DROPCLEANBUFFERS (Transact-SQL...

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
Other versions are also available for the following:
SQL Server 2008 Books Online (June 2009)
DBCC DROPCLEANBUFFERS (Transact-SQL)

Removes all clean buffers from the buffer pool.

Topic link icon Transact-SQL Syntax Conventions

DBCC DROPCLEANBUFFERS [ WITH NO_INFOMSGS ]
WITH NO_INFOMSGS

Suppresses all informational messages.

DBCC DROPCLEANBUFFERS returns:

DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Use DBCC DROPCLEANBUFFERS to test queries with a cold buffer cache without shutting down and restarting the server.

To drop clean buffers from the buffer pool, first use CHECKPOINT to produce a cold buffer cache. This forces all dirty pages for the current database to be written to disk and cleans the buffers. After you do this, you can issue DBCC DROPCLEANBUFFERS command to remove all buffers from the buffer pool.

Requires membership in the sysadmin fixed server role.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker