次の方法で共有


Table.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 値です。

使用例

ファイルとファイル グループを使用したデータの格納

関連項目

参照

Table クラス

SwitchPartition オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

テーブルの作成、変更、および削除

テーブル

sp_addmergepartition (Transact-SQL)