共用方式為


SwitchPartition 方法 (Int32, Table)

將資料表的指定資料分割切換為所指定的目標資料表 (假設目標資料表未分割)。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub SwitchPartition ( _
    sourcePartitionNumber As Integer, _
    targetTable As Table _
)
'用途
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
)

參數