Compartilhar via


Método SwitchPartition (Int32, Table, Int32)

Alterna a partição de origem especificada da tabela para o destino especificado da tabela de destino especificada.

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

Sintaxe

'Declaração
Public Sub SwitchPartition ( _
    sourcePartitionNumber As Integer, _
    targetTable As Table, _
    targetPartitionNumber As Integer _
)
'Uso
Dim instance As Table
Dim sourcePartitionNumber As Integer
Dim targetTable As Table
Dim targetPartitionNumber As Integer

instance.SwitchPartition(sourcePartitionNumber, _
    targetTable, targetPartitionNumber)
public void SwitchPartition(
    int sourcePartitionNumber,
    Table targetTable,
    int targetPartitionNumber
)
public:
void SwitchPartition(
    int sourcePartitionNumber, 
    Table^ targetTable, 
    int targetPartitionNumber
)
member SwitchPartition : 
        sourcePartitionNumber:int * 
        targetTable:Table * 
        targetPartitionNumber:int -> unit 
public function SwitchPartition(
    sourcePartitionNumber : int, 
    targetTable : Table, 
    targetPartitionNumber : int
)

Parâmetros