sql server - Clearing the cache (recompile) for a database in sqlserver without restarting it sqlserver -


is there way clear of cache specific database equivalent option(recompile) stored proc?

i think closest thing is:

dbcc dropcleanbuffers 

more on: msdn

look @ remarks section closely:

use dbcc dropcleanbuffers test queries cold buffer cache without shutting down , restarting server. drop clean buffers buffer pool, first use checkpoint produce cold buffer cache. forces dirty pages current database written disk , cleans buffers. after this, can issue dbcc dropcleanbuffers command remove buffers buffer pool.

you use this:

checkpoint; go dbcc dropcleanbuffers; go 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -