Get-ReplEnumSubscriptions2

Calls the EnumSubscriptions2 method on a PublicationMonitor object.

Syntax

Get-ReplEnumSubscriptions2 [-pubMon] <PublicationMonitor> [<CommonParameters>]

Detailed Description

The Get-ReplEnumSubscriptions2 function calls the EnumSubscriptions2 method for the specified PublicationMonitor object.

Related Commands

* Get-ReplEnumSubscriptions2
* Get-ReplPublicationMonitor

Parameters

Name Description Required? Pipeline Input Default Value
pubMon    true  true (ByValue)   

Input Type

Microsoft.SqlServer.Replication.PublicationMonitor You can pipe PublicationMonitor objects to Get-ReplEnumSubscriptions2

Return Values

System.Data.DataRow Get-ReplEnumSubscriptions2 returns an array of System.Data.DataRow objects

Notes

Equivalent to executing sp_replmonitorhelpSubscription. Only available for Microsoft SQL Server version 2005 or later.

Examples

EXAMPLE 1

Get-ReplPublicationMonitor "Z002\sql2K8" | Get-ReplEnumSubscriptions2
This command calls the EnumSubscriptions2 method for SQL Server Z002\SQL2K8.