ReInitialize2 Method

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

The ReInitialize2 method marks a subscription for reinitialization.

構文

object
.ReInitialize2( [ bUploadFirst ] )

Parts

  • object
    Expression that evaluates to an object in the Applies To list.
  • bUploadFirst
    Optional Boolean that specifies whether to upload all changes from the Subscriber prior to applying the updated snapshot files when reinitializing a subscription.

Prototype (C/C++)

HRESULT ReInitialize2(BOOL bUploadFirst);

解説

Call ReInitialize2 with bUploadFirst set to TRUE to reinitialize a merge subscription, thereby preserving any changes made at the Subscriber since the last synchronization. This optional syntax directs the Merge Agent to upload all changes from the Subscriber before applying the updated snapshot files when processing the reinitialize request.

By default, the bUploadFirst parameter is set to FALSE.

Reinitializing a subscription by using the ReInitialize2 method requires appropriate permissions. The login used for the SQLServer object connection must be a member of the fixed server role sysadmin or fixed database role db_owner in the database referenced by the subscribed-to publication.

ms142621.note(ja-jp,SQL.90).gifメモ :
If an application calls ReInitialize2 on an instance of SQL Server version 7.0 and bUploadFirst is set to TRUE, the constant, SQLDMO_E_SQL80ONLY, and the message "This property or method requires Microsoft SQL Server 2000 or later" are returned. ReInitialize2 can be used with SQL Server 7.0, and Microsoft SQL Server 2000 or later if bUploadFirst is set to FALSE .

Applies To:

MergePublication2 Object

MergeSubscription2 Object

MergePullSubscription2 Object

 

参照

関連項目

ReInitialize Method

ヘルプおよび情報

SQL Server 2005 の参考資料の入手