| title | DBCC FREESESSIONCACHE (Transact-SQL) | ||||
|---|---|---|---|---|---|
| description | DBCC FREESESSIONCACHE flushes the distributed query connection cache used by distributed queries against an instance of SQL Server. | ||||
| author | rwestMSFT | ||||
| ms.author | randolphwest | ||||
| ms.date | 12/05/2022 | ||||
| ms.service | sql | ||||
| ms.subservice | t-sql | ||||
| ms.topic | 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 [!INCLUDEssNoVersion].
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
DBCC FREESESSIONCACHE [ WITH NO_INFOMSGS ]
Suppresses all informational messages.
Requires membership in the sysadmin fixed server role.
The following example flushes the distributed query cache.
USE AdventureWorks2022;
GO
DBCC FREESESSIONCACHE WITH NO_INFOMSGS;
GO