MakePullSubscriptionWellKnown Método
Registers a merge pull subscription at the Publisher.
Espacio de nombres: Microsoft.SqlServer.Replication
Ensamblado: Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)
Sintaxis
'Declaración
Public Sub MakePullSubscriptionWellKnown ( _
subscriber As String, _
subscriptionDB As String, _
syncType As SubscriptionSyncType, _
subscriberType As MergeSubscriberType, _
priority As Single _
)
'Uso
Dim instance As MergePublication
Dim subscriber As String
Dim subscriptionDB As String
Dim syncType As SubscriptionSyncType
Dim subscriberType As MergeSubscriberType
Dim priority As Single
instance.MakePullSubscriptionWellKnown(subscriber, _
subscriptionDB, syncType, subscriberType, _
priority)
public void MakePullSubscriptionWellKnown(
string subscriber,
string subscriptionDB,
SubscriptionSyncType syncType,
MergeSubscriberType subscriberType,
float priority
)
public:
void MakePullSubscriptionWellKnown(
String^ subscriber,
String^ subscriptionDB,
SubscriptionSyncType syncType,
MergeSubscriberType subscriberType,
float priority
)
member MakePullSubscriptionWellKnown :
subscriber:string *
subscriptionDB:string *
syncType:SubscriptionSyncType *
subscriberType:MergeSubscriberType *
priority:float32 -> unit
public function MakePullSubscriptionWellKnown(
subscriber : String,
subscriptionDB : String,
syncType : SubscriptionSyncType,
subscriberType : MergeSubscriberType,
priority : float
)
Parámetros
- subscriber
Tipo: System. . :: . .String
A String value that specifies the Subscriber where the pull subscription was created.
- subscriptionDB
Tipo: System. . :: . .String
A String value that specifies the subscription database in which the pull subscription was created.
- syncType
Tipo: Microsoft.SqlServer.Replication. . :: . .SubscriptionSyncType
A SubscriptionSyncType object that specifies how the subscription synchronization is performed.
- subscriberType
Tipo: Microsoft.SqlServer.Replication. . :: . .MergeSubscriberType
A MergeSubscriberType object that specifies whether the subscription to register is a local or global subscription.
- priority
Tipo: System. . :: . .Single
A String value that specifies the weighting of the pull subscription to resolve conflicts when more than one change occurs in the same replicated data.
Comentarios
Use EnumSubscriptions to determine if a subscription is already registered at the Publisher. If the registration exists, MakePullSubscriptionWellKnown generates an error at the server.
The MakePullSubscriptionWellKnown method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.
Calling MakePullSubscriptionWellKnown is equivalent to executing sp_addmergesubscription to register the pull subscription.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Vea también