Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

clear query cache sql server

DBCC FREEPROCCACHE
DBCC DROPCLEANBUFFERS

DBCC DROPCLEANBUFFERS clears clean (unmodified) pages from the buffer pool
Precede that with a CHECKPOINT to flush any dirty pages to disk first
DBCC FLUSHPROCINDB clears execution plans for that database
Source by blog.sqlauthority.com #
 
PREVIOUS NEXT
Tagged: #clear #query #cache #sql #server
ADD COMMENT
Topic
Name
3+6 =