CHECKPOINT --用于检查当前工作的数据库中被更改过的数据页或日志页,并将这些数据从数据缓冲器中强制写入硬盘 GO DBCC FreeProcCache --从缓冲池中删除所有缓冲区 DBCC DropCleanBuffers --从过程高速缓存中删除所有元素 GO DBCC FreeSystemCache(‘ALL‘) ;--清除SQL实例的计划缓存 GO SET Statistics IO ON SET Statistics TIME ON GO select * from test_person tp where tp.name = ‘马本海‘ SET Statistics IO OFF SET Statistics TIME OFF GO DBCC DropCleanBuffers DBCC FreeProcCache
原文:https://www.cnblogs.com/chenzhaoyu/p/13156423.html