Compartilhar via


Método Index.Rebuild (Int32)

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

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

Sintaxe

'Declaração
Public Sub Rebuild ( _
    partitionNumber As Integer _
)
'Uso
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
)

Parâmetros

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

Comentários

ObservaçãoObservação

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

Exemplos

Criando, alterando e removendo índices

Consulte também

Referência

Index Classe

Sobrecarregado Rebuild

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Índices

ALTER INDEX (Transact-SQL)

DBCC DBREINDEX (Transact-SQL)