Compartir a través de


PublicationMonitor.TransPendingCommandInfo Método

Returns information about pending commands for a subscription.

Espacio de nombres:  Microsoft.SqlServer.Replication
Ensamblado:  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Sintaxis

'Declaración
Public Function TransPendingCommandInfo ( _
    subscriberName As String, _
    subscriptionDBName As String, _
    subscriptionType As SubscriptionOption _
) As PendingCommandInfo
'Uso
Dim instance As PublicationMonitor 
Dim subscriberName As String 
Dim subscriptionDBName As String 
Dim subscriptionType As SubscriptionOption 
Dim returnValue As PendingCommandInfo 

returnValue = instance.TransPendingCommandInfo(subscriberName, _
    subscriptionDBName, subscriptionType)
public PendingCommandInfo TransPendingCommandInfo(
    string subscriberName,
    string subscriptionDBName,
    SubscriptionOption subscriptionType
)
public:
PendingCommandInfo^ TransPendingCommandInfo(
    String^ subscriberName, 
    String^ subscriptionDBName, 
    SubscriptionOption subscriptionType
)
member TransPendingCommandInfo : 
        subscriberName:string * 
        subscriptionDBName:string * 
        subscriptionType:SubscriptionOption -> PendingCommandInfo
public function TransPendingCommandInfo(
    subscriberName : String, 
    subscriptionDBName : String, 
    subscriptionType : SubscriptionOption
) : PendingCommandInfo

Parámetros

  • subscriberName
    Tipo: System.String
    A String value that specifies the name of the Subscriber on which the subscription resides.
  • subscriptionDBName
    Tipo: System.String
    A String value that specifies the name of the subscription database.

Valor devuelto

Tipo: Microsoft.SqlServer.Replication.PendingCommandInfo
A PendingCommandInfo object value that contains the list of pending commands and estimated time to complete delivering them.

Comentarios

The TransPendingCommandInfo method can only be called by members of the sysadmin fixed server role on the Distributor, by members of the db_owner fixed database role on the distribution database, or by users in the publication access list (PAL) for the publication.

Calling TransPendingCommandInfo is equivalent to executing sp_replmonitorsubscriptionpendingcmds (Transact-SQL).

Vea también

Referencia

PublicationMonitor Clase

Espacio de nombres Microsoft.SqlServer.Replication

Otros recursos

Supervisar la replicación mediante programación (programación con RMO)