DBCC DROPCLEANBUFFERS
DBCC DROPCLEANBUFFERS: administrative check or maintenance
What changes
- Input
- database, table, index, cache or server state named in the command
- Output or change
- messages or result sets; maintenance forms change storage, caches or metadata
Syntax at a glance
DBCC DROPCLEANBUFFERS [ WITH NO_INFOMSGS ]
Work example
A lab benchmark needs a cold buffer cache before measuring a query.
Use an isolated instance, record the warm result first, and never clear a shared production cache for a test.
Check your work The benchmark records the cold-cache condition and no shared workload loses cached pages.
Open Microsoft Learn for full syntax, permissions, and details for your version.