Compartir a través de


Table.SwitchPartition Método (Table, Int32)

Switches the table to the partition with the specified partition number of the specified target table.

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

Sintaxis

'Declaración
Public Sub SwitchPartition ( _
    targetTable As Table, _
    targetPartitionNumber As Integer _
)
'Uso
Dim instance As Table 
Dim targetTable As Table 
Dim targetPartitionNumber As Integer

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

Parámetros

  • targetPartitionNumber
    Tipo: System.Int32
    An Int32 value that specifies the partition number of the target 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)