title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DBCC FREESESSIONCACHE (Transact-SQL) |
DBCC FREESESSIONCACHE flushes the distributed query connection cache used by distributed queries against an instance of SQL Server. |
rwestMSFT |
randolphwest |
12/05/2022 |
sql |
t-sql |
reference |
|
|
|
[!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