Condividi tramite


Metodo SwitchPartition (Int32, Table, Int32)

Sposta la partizione di origine specificata della tabella nella destinazione specificata della tabella di destinazione specificata.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Sub SwitchPartition ( _
    sourcePartitionNumber As Integer, _
    targetTable As Table, _
    targetPartitionNumber As Integer _
)
'Utilizzo
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
)

Parametri

  • sourcePartitionNumber
    Tipo: System. . :: . .Int32
    Valore Int32 che specifica il numero di partizione della partizione di origine.
  • targetPartitionNumber
    Tipo: System. . :: . .Int32
    Valore Int32 che specifica il numero di partizione della partizione di destinazione.