Table.SwitchPartition Method (Table, Int32)

指定した対象テーブルの指定したパーティション番号のパーティションに、テーブルを切り替えます。

名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)

構文

'宣言
Public Sub SwitchPartition ( _
    targetTable As Table, _
    targetPartitionNumber As Integer _
)
public void SwitchPartition (
    Table targetTable,
    int targetPartitionNumber
)
public:
void SwitchPartition (
    Table^ targetTable, 
    int targetPartitionNumber
)
public void SwitchPartition (
    Table targetTable, 
    int targetPartitionNumber
)
public function SwitchPartition (
    targetTable : Table, 
    targetPartitionNumber : int
)

パラメータ

  • targetTable
    必要なパーティション内にあるテーブルを示す Table オブジェクトの値です。
  • targetPartitionNumber
    基になるパーティションのパーティション番号を示す Int32 値です。

解説

この名前空間、クラス、またはメンバは、Microsoft .NET Framework Version 2.0 でのみサポートされています。

使用例

Visual Basic .NET でテーブルのパーティション構成を設定する方法

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

Table Class
Table Members
Microsoft.SqlServer.Management.Smo Namespace

その他の技術情報

テーブルおよびインデックスのパーティション分割の使用
テーブルの作成、変更、および削除
テーブル
sp_addmergepartition (Transact-SQL)