Home  >  Article  >  Database  >  删除计划缓存

删除计划缓存

WBOY
WBOYOriginal
2016-06-07 14:56:41971browse

删除计划缓存 SQL Server --删除整个数据库的计划缓存DBCC?FREEPROCCACHE--删除某个数据库的计划缓存USE?masterDECLARE?@dbid?INTSELECT?@dbid=dbid?FROM?sysdatabases?WHERE?NAME?=?'表名'DBCC?FLUSHPROCINDB?(@dbid)

删除计划缓存

SQL Server
--删除整个数据库的计划缓存
DBCC?FREEPROCCACHE

--删除某个数据库的计划缓存
USE?master
DECLARE?@dbid?INT
SELECT?@dbid=dbid?FROM?sysdatabases?WHERE?NAME?=?'表名'
DBCC?FLUSHPROCINDB?(@dbid)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:oracle 回收站管理Next article:查看Oracle数据库状态