共用方式為


Table.SwitchPartition 方法 (Int32, Table)

Switches the specified partition of the table to the specified target table specified (assuming the target table is not partitioned).

命名空間:  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
    An Int32 value that specifies the partition number of the source partition.

範例

使用檔案群組和檔案來儲存資料

請參閱

參考

Table 類別

SwitchPartition 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

建立、改變和移除資料表

資料表

sp_addmergepartition (Transact-SQL)