- --删除整个数据库的计划缓存
- DBCC FREEPROCCACHE
- --删除某个数据库的计划缓存
- USE master
- DECLARE @dbid INT
- SELECT @dbid=dbid FROM sysdatabases WHERE NAME = '表名'
- DBCC FLUSHPROCINDB (@dbid)
- --该片段来自于http://www.codesnippet.cn/detail/100520133275.html
来源: http://www.codesnippet.cn/detail/100520133275.html