| title | DBCC FREESESSIONCACHE (Transact-SQL) | ||||
|---|---|---|---|---|---|
| description | DBCC FREESESSIONCACHE (Transact-SQL) | ||||
| author | rwestMSFT | ||||
| ms.author | randolphwest | ||||
| ms.date | 07/16/2017 | ||||
| ms.prod | sql | ||||
| ms.technology | t-sql | ||||
| ms.topic | language-reference | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Managed Instance]
Flushes the distributed query connection cache used by distributed queries against an instance of [!INCLUDEmsCoName] [!INCLUDEssNoVersion].
Transact-SQL Syntax Conventions
DBCC FREESESSIONCACHE [ WITH NO_INFOMSGS ]
[!INCLUDEsql-server-tsql-previous-offline-documentation]
WITH NO_INFOMSGS
Suppresses all informational messages.
Requires membership in the sysadmin fixed server role.
The following example flushes the distributed query cache.
USE AdventureWorks2012;
GO
DBCC FREESESSIONCACHE WITH NO_INFOMSGS;
GO