Compartilhar via


Método Table.SwitchPartition (Int32, Table)

Switches the specified partition of the table to the specified target table specified (assuming the target table is not partitioned).

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 _
)
'Uso
Dim instance As Table 
Dim sourcePartitionNumber As Integer 
Dim targetTable As Table

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

Parâmetros

  • sourcePartitionNumber
    Tipo: System.Int32
    An Int32 value that specifies the partition number of the source partition.

Exemplos

Usando grupos de arquivos e arquivos para armazenar dados

Consulte também

Referência

Table Classe

Sobrecarregado SwitchPartition

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Criando, alterando e removendo tabelas

Tabelas

sp_addmergepartition (Transact-SQL)