مشاركة عبر


Index.Rebuild Method (Int32)

Rebuilds the index on the partition with the specified partition number.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Rebuild ( _
    partitionNumber As Integer _
)
'Usage
Dim instance As Index 
Dim partitionNumber As Integer

instance.Rebuild(partitionNumber)
public void Rebuild(
    int partitionNumber
)
public:
void Rebuild(
    int partitionNumber
)
member Rebuild : 
        partitionNumber:int -> unit
public function Rebuild(
    partitionNumber : int
)

Parameters

  • partitionNumber
    Type: System.Int32
    A Int32 value that specifies the number of the partition to be rebuilt.

Remarks

Note

Indexes based on the UserDefinedTableType object cannot be modified and running this method will generate an exception.

Examples

Creating, Altering, and Removing Indexes

See Also

Reference

Index Class

Rebuild Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Indexes

ALTER INDEX (Transact-SQL)

DBCC DBREINDEX (Transact-SQL)