DBCC DROPCLEANBUFFERS (Transact-SQL)
SQL Server 2008 Books Online (October 2009)
DBCC DROPCLEANBUFFERS (Transact-SQL)

Removes all clean buffers from the buffer pool.

Topic link icon Transact-SQL Syntax Conventions

Syntax

DBCC DROPCLEANBUFFERS [ WITH NO_INFOMSGS ]
Arguments

WITH NO_INFOMSGS

Suppresses all informational messages.

Result Sets

DBCC DROPCLEANBUFFERS returns:

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

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.

Permissions

Requires membership in the sysadmin fixed server role.

See Also

Reference

DBCC (Transact-SQL)
CHECKPOINT (Transact-SQL)

Help and Information

Getting SQL Server 2008 Assistance
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View