PublicationMonitor.TransPendingCommandInfo 메서드

Returns information about pending commands for a subscription.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)

구문

‘선언
Public Function TransPendingCommandInfo ( _
    subscriberName As String, _
    subscriptionDBName As String, _
    subscriptionType As SubscriptionOption _
) As PendingCommandInfo
‘사용 방법
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

매개 변수

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

반환 값

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

주의

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).

참고 항목

참조

PublicationMonitor 클래스

Microsoft.SqlServer.Replication 네임스페이스

관련 자료

프로그래밍 방식으로 복제 모니터링(RMO 프로그래밍)