MergePublication Object
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The MergePublication object represents a merge publication. A publication contains one or more articles (tables) that contain the replicated data.
Properties
Methods
|
주의
With the MergePublication object, you can:
- Create a new merge publication.
- Change the properties of an existing merge publication.
To create a merge publication
Create a new MergePublication object.
Set the Name property.
Set the PublicationAttributes property as appropriate.
- To enable push subscriptions, use SQLDMOPubAttrib_AllowPush.
- To enable pull subscriptions, use SQLDMOPubAttrib_AllowPull.
- To enable anonymous subscriptions, use SQLDMOPubAttrib_AllowPull and SQLDMOPubAttrib_AllowAnonymous.
- To enable Internet subscriptions, use SQLDMOPubAttrib_InternetEnabled.
Add the MergePublication object to the MergePublications collection of a connected ReplicationDatabase object.
To alter a merge publication
Get a MergePublication object from the MergePublications collection of a connected ReplicationDatabase object.
Use the BeginAlter method to mark the beginning of the changes.
Set the MergePublication properties to reflect the changes to the merge publication.
Use the DoAlter method to submit the changes to Microsoft SQL Server.
[!참고] The MergePublication object is compatible with instances of SQL Server versions 7.0 and later. However, the MergePublication2 object extends the functionality of the MergePublication object for use with features that were introduced in SQL Server 2000.