How to clear the cache in SQL Server Management Studio (SSMS)?
Ask by Ashutosh Patel
Updated 11 Oct 2024
Clear the Cache in SQL
Clearing the cache in SQL Server Management Studio (SSMS) generally refers to clearing the plan cache or data cache in SQL Server. Here is how you can do that,
Clear Plan Cache
Execute the below SQL Command to clear the execution plan cache,
Clear Data Cache
Execute the below SQL Command to clear the Data cache (butter pool),
Clear the Session Cache
To clear the session cache, execute the below SQL command,
Note- Clearing the cache may temporarily impact performance, as SQL Server will need to recompile execution plans and reload data into memory.