DBCC DROPCLEANBUFFERS

Remove all clean buffers from the buffer pool.

Syntax
      DBCC DROPCLEANBUFFERS [WITH NO_INFOMSGS]

Syntax for Azure Synapse Analytics and Analytics Platform System (PDW):

      DBCC DROPCLEANBUFFERS ( COMPUTE | ALL ) [ WITH NO_INFOMSGS ]

Key:
   WITH NO_INFOMSGS - Suppress all information messages.

This command is useful to test queries with a cold buffer cache without shutting down and restarting the server.

To produce a 'cold' buffer cache with all dirty pages written to disk, first use CHECKPOINT.

#Why can't I ease your doubtful mind, and melt your cold, cold heart # ~ Hank Williams

Related commands

CHECKPOINT
DBCC FREE... CACHE


 
Copyright © 1999-2026 SS64.com
Some rights reserved