PublicationMonitor.TransPendingCommandInfo 메서드

Returns information about pending commands for a subscription.

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

public PendingCommandInfo TransPendingCommandInfo(
	string subscriberName,
	string subscriptionDBName,
	SubscriptionOption subscriptionType

매개 변수

유형: System.String
A String value that specifies the name of the Subscriber on which the subscription resides.
유형: System.String
A String value that specifies the name of the subscription database.
유형: Microsoft.SqlServer.Replication.SubscriptionOption
A SubscriptionOption object value that specifies the type of subscription (push or pull).

반환 값

유형: 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).