Table.SwitchPartition Method (Table, Int32)

 

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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public void SwitchPartition(
	Table targetTable,
	int targetPartitionNumber
)

Parameters

targetTable
Type: Microsoft.SqlServer.Management.Smo.Table

A Table object value that specifies the table that is in the required partition.

targetPartitionNumber
Type: System.Int32

An Int32 value that specifies the partition number of the target partition.

Return to top
Show: