共用方式為


RebuildIndex Method

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The RebuildIndex method re-creates an index implementing a Microsoft SQL Server PRIMARY KEY or UNIQUE key constraint.

語法

object
.RebuildIndex(
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT RebuildIndex();

備註

Use the RebuildIndex method when the Type property of the Key object returns SQLDMOKey_Primary or SQLDMOKey_Unique, and the object references an existing table key.

Set the FillFactor property of the Key object prior to calling the method to alter key-maintaining index density. For more information about index fill factor, see CREATE INDEX.

Applies To:

請參閱

參考