Freigeben über


RebuildIndex Method

Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

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

Syntax

object
.RebuildIndex(
)

Parts

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

Prototype (C/C++)

HRESULT RebuildIndex();

Hinweise

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:

Key Object

Siehe auch

Verweis

FillFactor Property

Hilfe und Informationen

Informationsquellen für SQL Server 2005