Export (0) Print
Expand All

PublicationMonitor.TransPendingCommandInfo Method (String, String, SubscriptionOption)


Applies To: SQL Server 2016 Preview

Returns information about pending commands for a subscription.

Namespace:   Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

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


Type: System.String

A String value that specifies the name of the Subscriber on which the subscription resides.

Type: System.String

A String value that specifies the name of the subscription database.

Type: Microsoft.SqlServer.Replication.SubscriptionOption

A SubscriptionOption object value that specifies the type of subscription (push or pull).

Return Value

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

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft