--- title: DBCC DROPCLEANBUFFERS (Transact-SQL) description: "DBCC DROPCLEANBUFFERS (Transact-SQL)" author: rwestMSFT ms.author: randolphwest ms.date: "11/5/2021" ms.prod: sql ms.technology: t-sql ms.topic: "language-reference" f1_keywords: - "DROPCLEANBUFFERS" - "DBCC_DROPCLEANBUFFERS_TSQL" - "DROPCLEANBUFFERS_TSQL" - "DBCC DROPCLEANBUFFERS" helpviewer_keywords: - "clean buffers" - "cold buffer cache" - "buffer pools [SQL Server]" - "dropping buffers" - "removing buffers" - "DBCC DROPCLEANBUFFERS statement" dev_langs: - "TSQL" monikerRange: ">=aps-pdw-2016||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current" --- # DBCC DROPCLEANBUFFERS (Transact-SQL) [!INCLUDE [sql-asdb-asdbmi-asa-pdw](../../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)] Removes all clean buffers from the buffer pool, and columnstore objects from the columnstore object pool. ![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md) ## Syntax Syntax for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] and [!INCLUDE[ssSOD](../../includes/sssodfull-md.md)]: ```syntaxsql DBCC DROPCLEANBUFFERS [ WITH NO_INFOMSGS ] ``` Syntax for [!INCLUDE[ssSDW](../../includes/sssdw-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]: ```syntaxsql DBCC DROPCLEANBUFFERS ( COMPUTE | ALL ) [ WITH NO_INFOMSGS ] ``` [!INCLUDE[sql-server-tsql-previous-offline-documentation](../../includes/sql-server-tsql-previous-offline-documentation.md)] ## Arguments WITH NO_INFOMSGS Suppresses all informational messages. Informational messages are always suppressed on [!INCLUDE[ssSDW](../../includes/sssdw-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]. 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 setting is the default if you don't specify a value. ## 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 and columnstore objects from the columnstore object pool, first use CHECKPOINT to produce a cold buffer cache. CHECKPOINT forces all dirty pages for the current database to be written to disk and cleans the buffers. After you checkpoint the database, you can issue DBCC DROPCLEANBUFFERS command to remove all buffers from the buffer pool. ## Result Sets DBCC DROPCLEANBUFFERS on [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] returns: ``` DBCC execution completed. If DBCC printed error messages, contact your system administrator. ``` ## Permissions Requires membership in the `sysadmin` fixed server role for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]. Requires membership in the `DB_OWNER` fixed server role for [!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)]. ## See Also [DBCC (Transact-SQL)](../../t-sql/database-console-commands/dbcc-transact-sql.md) [CHECKPOINT (Transact-SQL)](../../t-sql/language-elements/checkpoint-transact-sql.md)