打印本文 打印本文 关闭窗口 关闭窗口
重建 SQLServer 索引的重要性!
作者:武汉SEO闵涛  文章来源:敏韬网  点击数8610  更新时间:2007/11/14 13:07:47  文章录入:mintao  责任编辑:mintao
- Extent Switches..............................: 2

- Avg. Pages per Extent........................: 7.3

- Scan Density [Best Count:Actual Count].......: 100.00% [3:3]

- Logical Scan Fragmentation ..................: 0.00%

- Extent Scan Fragmentation ...................: 33.33%

- Avg. Bytes Free per Page.....................: 869.2

- Avg. Page Density (full).....................: 89.26%

 

 

 

DBCC execution completed. If DBCC printed error messages, contact your system administrator.

 

 

 

通过结果我们可以看到Scan Denity100%表没有分块不需要重构表索引了。如果重构表的簇索引Scan Denity还小于100%的话可以重构表的全部索引。命令如下:

 

--use northwind

 

 

--dbcc dbreindex(''''northwind.dbo.orders'''',’’,90)

 

使用作业定时重构索引:

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9]  下一页

打印本文 打印本文 关闭窗口 关闭窗口