次の方法で共有


RemoveReplicatedColumns Method

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The RemoveReplicatedColumns method configures a previously created, vertical partition for a transactional or snapshot replication article.

構文

object
.RemoveReplicatedColumns(
Columns
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.
  • Columns
    SQL Distributed Management Objects (SQL-DMO) multistring that identifies one or more columns in the vertical partition.

Prototype (C/C++)

HRESULT RemoveReplicatedColumns(
SQLDMO_LPCSTR Columns);

解説

When using SQL-DMO to create a transactional or snapshot replication article, all columns in a table referenced by the article are replicated by default.

An initial column list, set by using the AddReplicatedColumns method, establishes an initial vertical partition of the replicated table. The initial partition can be established prior to article creation (before the TransArticle object is added to its containing collection) or to an existing, nonpartitioned article.

When the TransArticle object references an article with an existing partition, the RemoveReplicatedColumns method restructures the partition. To restore default article behavior, use the RemoveReplicatedColumns method that lists all columns in the current partition. Use the ListReplicatedColumns method to determine names of all columns participating in an existing partition.

For more information about setting multistring parameters, see Using SQL-DMO Multistrings.

ms135695.note(ja-jp,SQL.90).gifメモ :
If an application sets RemoveReplicatedColumns after the initial snapshot has been created, a new snapshot must be generated and reapplied to each subscription. Snapshots are applied when the next scheduled snapshot and distribution or merge agent run.

Applies To:

MergeArticle2 Object

TransArticle Object

参照

関連項目

AddReplicatedColumns Method
ListReplicatedColumns Method

ヘルプおよび情報

SQL Server 2005 の参考資料の入手