DBCC FREEPROCCACHE
DBCC FREEPROCCACHE: administrative check or maintenance
What changes
- Input
- database, table, index, cache or server state named in the command
- Output or change
- messages or result sets; maintenance forms change storage, caches or metadata
Syntax at a glance
DBCC FREEPROCCACHE [ ( { plan_handle | sql_handle | pool_name } ) ] [ WITH NO_INFOMSGS ]
Work example
A controlled performance test needs a clean plan-cache condition.
Use an isolated instance and capture plan and CPU baselines before any cache clearing.
Check your work Only the intended lab plans recompile and no shared production workload is disrupted.
Open Microsoft Learn for full syntax, permissions, and details for your version.