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

Lists in Python -

android - can not access to progress bar in an other activity -

html - Not able to access next element of an array javascript -