MSSQL 2017 on Windows Replication: Publication Discovery

Microsoft.SQLServer.2017.Replication.Windows.Discovery.Publication (Discovery)

The object discovery discovers all publications of a Publisher of Microsoft SQL Server 2017 on Windows

Knowledge Base article:

Summary

A publication is a collection of one or more articles from one database. The grouping of multiple articles into a publication makes it easier to specify a logically related set of database data and objects that are replicated as a unit.

External

Replication Publishing Model Overview

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Interval (seconds)

The recurring interval of time in seconds in which to run the workflow.

14400

Synchronization Time

Synchronization Time

 

Timeout (seconds)

Specifies the time the workflow is allowed to run before being closed and marked as failed.

300

Timeout for database connection (seconds)

The workflow will fail and register an event, if it cannot access the database during the specified period.

15

Element properties:

TargetMicrosoft.SQLServer.2017.Replication.Windows.Publisher
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2017.Replication.Windows.DataSource.PublicationDiscovery Microsoft.SQLServer.DiscoveryAccount

Source Code:

<Discovery ID="Microsoft.SQLServer.2017.Replication.Windows.Discovery.Publication" Target="Microsoft.SQLServer.2017.Replication.Windows.Publisher" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2017.Replication.Windows.Publication"/>
<DiscoveryRelationship TypeID="MSRL!Microsoft.SQLServer.2017.Replication.Library.GenericPublicationRefersSystemDatabase"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2017.Replication.Windows.DataSource.PublicationDiscovery" RunAs="GPMP!Microsoft.SQLServer.DiscoveryAccount">
<MachineName>$Target/Host/Property[Type='SQL2017L!Microsoft.SQLServer.2017.Library.DBEngine']/MachineName$</MachineName>
<InstanceName>$Target/Host/Property[Type='SQL2017L!Microsoft.SQLServer.2017.Library.DBEngine']/InstanceName$</InstanceName>
<ConnectionString>$Target/Host/Property[Type='SQL2017L!Microsoft.SQLServer.2017.Library.DBEngine']/ConnectionString$</ConnectionString>
<MonitoringType>$Target/Host/Property[Type="SQL2017WD!Microsoft.SQLServer.2017.Windows.DBEngine"]/MonitoringType$</MonitoringType>
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<SqlTimeoutSeconds>15</SqlTimeoutSeconds>
<ClassId>$MPElement[Name='Microsoft.SQLServer.2017.Replication.Windows.Publication']$</ClassId>
<DataBaseClassId>$MPElement[Name='SQL2017WD!Microsoft.SQLServer.2017.Windows.Database']$</DataBaseClassId>
<PublicationDatabaseRelationshipId>$MPElement[Name='MSRL!Microsoft.SQLServer.2017.Replication.Library.GenericPublicationRefersSystemDatabase']$</PublicationDatabaseRelationshipId>
<DefaultSnapshotFolder>$Target/Property[Type='MSRL!Microsoft.SQLServer.2017.Replication.Library.GenericPublisher']/DefaultSnapshotFolder$</DefaultSnapshotFolder>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>