Table.SwitchPartition 方法

定義

多載

名稱 Description
SwitchPartition(Int32, Table, Int32)

將目前資料表中帶有 sourcePartitionNumber 分割區號的分割區,切換到以 targetTable 指定的分割區號為 targetPartitionNumber 的分割區。

SwitchPartition(Int32, Table)

將當前資料表的分割區號 sourcePartitionNumber 切換到以 targetTableau 指定的資料表。 這假設目標資料表沒有被分割。

SwitchPartition(Table)

將目前的資料表切換到用 targetTable 指定的資料表。

SwitchPartition(Table, Int32)

將目前資料表切換到以 targetTableau 指定的分割區號 targetPartitionNumber 的分割區。

SwitchPartition(Int32, Table, Int32)

將目前資料表中帶有 sourcePartitionNumber 分割區號的分割區,切換到以 targetTable 指定的分割區號為 targetPartitionNumber 的分割區。

public void SwitchPartition(int sourcePartitionNumber, Microsoft.SqlServer.Management.Smo.Table targetTable, int targetPartitionNumber);
member this.SwitchPartition : int * Microsoft.SqlServer.Management.Smo.Table * int -> unit
Public Sub SwitchPartition (sourcePartitionNumber As Integer, targetTable As Table, targetPartitionNumber As Integer)

參數

sourcePartitionNumber
Int32
targetTable
Table
targetPartitionNumber
Int32

適用於

SwitchPartition(Int32, Table)

將當前資料表的分割區號 sourcePartitionNumber 切換到以 targetTableau 指定的資料表。 這假設目標資料表沒有被分割。

public void SwitchPartition(int sourcePartitionNumber, Microsoft.SqlServer.Management.Smo.Table targetTable);
member this.SwitchPartition : int * Microsoft.SqlServer.Management.Smo.Table -> unit
Public Sub SwitchPartition (sourcePartitionNumber As Integer, targetTable As Table)

參數

sourcePartitionNumber
Int32
targetTable
Table

適用於

SwitchPartition(Table)

將目前的資料表切換到用 targetTable 指定的資料表。

public void SwitchPartition(Microsoft.SqlServer.Management.Smo.Table targetTable);
member this.SwitchPartition : Microsoft.SqlServer.Management.Smo.Table -> unit
Public Sub SwitchPartition (targetTable As Table)

參數

targetTable
Table

適用於

SwitchPartition(Table, Int32)

將目前資料表切換到以 targetTableau 指定的分割區號 targetPartitionNumber 的分割區。

public void SwitchPartition(Microsoft.SqlServer.Management.Smo.Table targetTable, int targetPartitionNumber);
member this.SwitchPartition : Microsoft.SqlServer.Management.Smo.Table * int -> unit
Public Sub SwitchPartition (targetTable As Table, targetPartitionNumber As Integer)

參數

targetTable
Table
targetPartitionNumber
Int32

適用於