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
)
參數
- sourcePartitionNumber
型別:System. . :: . .Int32
Int32 值,這個值會指定來源資料分割的資料分割編號。
- targetTable
型別:Microsoft.SqlServer.Management.Smo. . :: . .Table
Table 物件值,這個值會指定位於所需資料分割中的資料表。