MergeSubscription Object
Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.
The MergeSubscription object represents a push subscription (made from the Publisher) to a merge publication.
Properties
Methods
Hinweise
With the MergeSubscription object, you can:
Add a push subscription to a merge publication.
Change the properties of an existing push merge subscription.
To create a merge push subscription at the Publisher
Create a new MergeSubscription object.
Set the Subscriber property to the name of an existing Subscriber.
Set the SubscriptionDB property to the name of the database (at the Subscriber) where the subscription data will be stored.
Note that the Name property defaults to subscriber**:**subscription_database.
Add the MergeSubscription object to the MergeSubscriptions collection of a connected MergePublication object.
To alter an existing merge push subscription
Get a MergeSubscription object from the MergeSubscriptions collection of a connected MergePublication object.
Use the BeginAlter method to mark the beginning of the changes.
Set the MergeSubscription object properties to reflect the changes to the merge push subscription.
Use the DoAlter method to submit the changes to Microsoft SQL Server.
Hinweis |
---|
The MergeSubscription object is compatible with instances of SQL Server versions 7.0 and later. However, the MergeSubscription2 object extends the functionality of the MergeSubscription object for use with features that were introduced in SQL Server 2000. |