📜  清除查询缓存 sql server - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:59.582000             🧑  作者: Mango

代码示例1
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