Removes all clean buffers from the buffer pool, and columnstore objects from the columnstore object pool.
Transact-SQL Syntax Conventions
Syntax for SQL Server:
Syntax for Azure SQL Warehouse and Parallel Data Warehouse:
WITH NO_INFOMSGS
Suppresses all informational messages. Informational messages are always suppressed on SQL Data Warehouse and SQL Data Warehouse Parallel Data Warehouse
COMPUTE
Purge the data cache in memory from each Compute node.
ALL
Purge the data cache in memory from each Compute node and from the Control node. This is the default if you do not specify a value.
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 and columnstore objects from the columnstore object 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.
DBCC DROPCLEANBUFFERS on SQL Server returns:
Applies to: SQL Server, Parallel Data Warehouse
Applies to: Azure SQL Data Warehouse