Table.SwitchPartition Method

Definition

Overloads

SwitchPartition(Table)

Switches the current table to the table specified with targetTable.

SwitchPartition(Table, Int32)

Switches the current table to the partition with the partition number targetPartitionNumber of the table specified with targetTable.

SwitchPartition(Int32, Table)

Switches the partition with the partition number sourcePartitionNumber of the current table to the table specified with targetTable. This assumes that the target table is not partitioned.

SwitchPartition(Int32, Table, Int32)

Switches the partition with the partition number sourcePartitionNumber of the current table to the partition with the partition number targetPartitionNumber of the table specified with targetTable.

SwitchPartition(Table)

Switches the current table to the table specified with targetTable.

C#
public void SwitchPartition(Microsoft.SqlServer.Management.Smo.Table targetTable);

Parameters

targetTable
Table

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode Versioonid
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0

SwitchPartition(Table, Int32)

Switches the current table to the partition with the partition number targetPartitionNumber of the table specified with targetTable.

C#
public void SwitchPartition(Microsoft.SqlServer.Management.Smo.Table targetTable, int targetPartitionNumber);

Parameters

targetTable
Table
targetPartitionNumber
Int32

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode Versioonid
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0

SwitchPartition(Int32, Table)

Switches the partition with the partition number sourcePartitionNumber of the current table to the table specified with targetTable. This assumes that the target table is not partitioned.

C#
public void SwitchPartition(int sourcePartitionNumber, Microsoft.SqlServer.Management.Smo.Table targetTable);

Parameters

sourcePartitionNumber
Int32
targetTable
Table

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode Versioonid
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0

SwitchPartition(Int32, Table, Int32)

Switches the partition with the partition number sourcePartitionNumber of the current table to the partition with the partition number targetPartitionNumber of the table specified with targetTable.

C#
public void SwitchPartition(int sourcePartitionNumber, Microsoft.SqlServer.Management.Smo.Table targetTable, int targetPartitionNumber);

Parameters

sourcePartitionNumber
Int32
targetTable
Table
targetPartitionNumber
Int32

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode Versioonid
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0