다음을 통해 공유


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 지원 받기