Compartir a través de


Table.SwitchPartition Método (Int32, Table)

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
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.

Ejemplos

Utilizar grupos de archivos y archivos para almacenar datos

Vea también

Referencia

Table Clase

Sobrecarga de SwitchPartition

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Crear, modificar y quitar tablas

Tablas

sp_addmergepartition (Transact-SQL)