Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

PublicationMonitor Class

 

Applies To: SQL Server 2016 Preview

Monitors a publication.

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

System.Object
  Microsoft.SqlServer.Replication.ReplicationObject
    Microsoft.SqlServer.Replication.PublicationMonitor

No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_pubmethodPublicationMonitor()

Creates a new instance of the PublicationMonitor class.

System_CAPS_pubmethodPublicationMonitor(String, String, String, String, ServerConnection)

Creates a new instance of the PublicationMonitor class with the specified name, distribution database, Publisher, publication database, and connection to the Distributor.

NameDescription
System_CAPS_pubpropertyCachePropertyChanges

Gets or sets whether to cache changes made to the replication properties or to apply them immediately.(Inherited from ReplicationObject.)

System_CAPS_pubpropertyCacheRefreshPolicy

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the monitor cache refresh policy.

System_CAPS_pubpropertyConnectionContext

Gets or sets the connection to an instance of Microsoft SQL Server.(Inherited from ReplicationObject.)

System_CAPS_pubpropertyDescription

Gets the textual description of the publication.

System_CAPS_pubpropertyDistributionDBName

Gets the name of the distribution database used by the publication.

System_CAPS_pubpropertyExcludeAnonymousSubscriptions

Gets or sets whether anonymous subscriptions are excluded from or included in the monitor results.

System_CAPS_pubpropertyIsExistingObject

Gets whether the object exists on the server or not.(Inherited from ReplicationObject.)

System_CAPS_pubpropertyName

Gets or sets the name of the monitored publication.

System_CAPS_pubpropertyPublicationDBName

Gets or sets the name of the publication database.

System_CAPS_pubpropertyPublisherName

Gets or sets the name of the Publisher.

System_CAPS_pubpropertyQueueReaderAgentName

Gets the queue reader agent name.

System_CAPS_pubpropertySqlServerName

Gets the name of the Microsoft SQL Server instance to which this object is connected. (Inherited from ReplicationObject.)

System_CAPS_pubpropertyStatus

Gets the status of the publication.

System_CAPS_pubpropertyStatusAndWarning

Gets the status and warnings of the referenced publication on the Distributor, including all of the agents associated for the publication.

System_CAPS_pubpropertyType

Gets the type of replication in which the publication participates.

System_CAPS_pubpropertyUserData

Gets or sets an object property that allows users to attach their own data to the object. (Inherited from ReplicationObject.)

NameDescription
System_CAPS_pubmethodChangeMonitorThreshold(Int32, Boolean, Int32, Int32)

Changes the monitoring threshold metric for a publication.

System_CAPS_pubmethodCleanUpTracerTokenHistory(DateTime)

Removes all metadata for tracer tokens older than the specified date from a database published using transactional replication.

System_CAPS_pubmethodCleanUpTracerTokenHistory(Int32)

Removes metadata for a specific tracer token from a database published using transactional replication.

System_CAPS_pubmethodCommitPropertyChanges()

Sends all the cached property change statements to the instance of Microsoft SQL Server.(Inherited from ReplicationObject.)

System_CAPS_pubmethodDecouple()

Decouples the referenced replication object from the server. (Inherited from ReplicationObject.)

System_CAPS_pubmethodEnumErrorRecords(Int32)

Returns information about errors associated with a specified error ID that occurred during a synchronization session.

System_CAPS_pubmethodEnumLogReaderAgent()

Returns information for the Log Reader Agent job used by the monitored publication.

System_CAPS_pubmethodEnumMonitorThresholds()

Returns the replication monitor thresholds defined for this publication.

System_CAPS_pubmethodEnumQueueReaderAgent()

Returns information for the Queue Reader Agent job used by the monitored publication.

System_CAPS_pubmethodEnumSnapshotAgent()

Returns information for the Snapshot Agent job used by the monitored publication.

System_CAPS_pubmethodEnumSubscriptions()

Returns information on subscriptions that are subscribed to the monitored publication.

System_CAPS_pubmethodEnumSubscriptions2(SubscriptionResultOption)

Returns additional information on subscriptions that are subscribed to the monitored publication.

System_CAPS_pubmethodEnumTracerTokenHistory(Int32)

Returns Subscriber latency information for a single tracer token record inserted into a monitored transactional publication.

System_CAPS_pubmethodEnumTracerTokens()

Returns all tracer tokens that have been inserted into the monitored transactional publication.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLoad()

Loads the properties of an existing object from the server. (Inherited from ReplicationObject.)

System_CAPS_pubmethodLoadProperties()

Loads the properties of an existing object from the server. (Inherited from ReplicationObject.)

System_CAPS_pubmethodRefresh()

Reloads the properties of the object. (Inherited from ReplicationObject.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTransPendingCommandInfo(String, String, SubscriptionOption)

Returns information about pending commands for a subscription.

An exception will be thrown if the specified Distributor, distribution database, and Publisher are not configured for replication.

PublicationMonitor requires a connection to the Distributor.

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show:
© 2015 Microsoft