共用方式為


ReInitialize Method

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

The ReInitialize method marks a subscription for reinitialization.

語法

object
.ReInitialize(
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT ReInitialize();

備註

Use the ReInitialize method only when the SQL Distributed Management Objects (SQL-DMO) object references a transactional or merge replication subscription.

After using ReInitialize, it may be necessary to update the initial snapshot of the publication. For subscriptions to transactional replication publications configured for automatic synchronization (the PublicationAttributes property of the referencing TransPublication object returns SQLDMOPubAttrib_ImmediateSync), the initial snapshot of the publication must be updated. For all other publication types, it is strongly suggested that the application force an update of the initial snapshot.

Reinitializing a subscription by using the ReInitialize method requires appropriate privilege. The Microsoft SQL Server login used for 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.

Applies To:

MergePullSubscription Object

TransPullSubscription Object

MergeSubscription Object

TransSubscription Object

請參閱

參考

ReInitialize2 Method

其他資源

同步處理資料

說明及資訊

取得 SQL Server 2005 協助