另类方法维护Sql Server中表的索引
declare @table_id int
set @table_id=object_id('表名')
dbcc showcontig(@table_id)
--第二步:重构表索引
dbcc dbreindex('表名',pk_索引名,100)
--重做第一步,如发现扫描密度/Scan Density还是小于100%则重构表的所有索引
--:并不一定能达100%。
dbcc dbreindex('表名','',100)
from:asp学习网/title:另类方法维护Sql Server中表的索引/ time:2007-5-4 21:39:21
本文主题索引,Sql Server