Table.SwitchPartition Method (Table)
Switches the partition of the table to the specified target table.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub SwitchPartition ( _
targetTable As Table _
)
'Usage
Dim instance As Table
Dim targetTable As Table
instance.SwitchPartition(targetTable)
public void SwitchPartition(
Table targetTable
)
public:
void SwitchPartition(
Table^ targetTable
)
member SwitchPartition :
targetTable:Table -> unit
public function SwitchPartition(
targetTable : Table
)
Parameters
- targetTable
Type: Microsoft.SqlServer.Management.Smo.Table
A Table object value that specifies the table that is in the required partition.
Examples
Using Filegroups and Files to Store Data
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace