【文件属性】:
文件名称:重建索引例子 DBCC dbreindex dbcc showcontig
文件大小:8KB
文件格式:TXT
更新时间:2013-11-27 13:22:43
重建索引例子 DBCC dbreindex
use ADVENTUREWORKS_DATA
declare @table_id int
set @table_id=object_id('[HumanResources].[Employee]')
select @table_id as table_id
dbcc showcontig(@table_id)
dbcc dbreindex('[HumanResources].[Employee]',' ',5)
DBCC INDEXDEFRAG('ADVENTUREWORKS_DATA','[HumanResources].[Employee]')
use ADVENTUREWORKS_DATA
set @table_id=object_id('[HumanResources].[Employee]')
select @table_id as table_id
dbcc showcontig(@table_id)