Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Is there a way to get Article ObjectID with RMO ?

$
0
0

Merge replication on SQL 2014.

Is there a way to obtain the value in sysMergeArticles.ObjId through RMO ? I don't see any properties containing it in the RMO class.

PS Code : 

$publisher = "SRV-ONECMR"
$RMOserver = New-Object ('Microsoft.SqlServer.Replication.ReplicationServer') -argumentlist $publisher -ErrorAction Stop
$RMOserver.ReplicationDatabases['Arizona'].MergePublications['Arizona_OU'].MergeArticles | select *

SQL Code: 

SELECT a.Name, a.objid
FROM Arizona.dbo.sysmergearticles AS a


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>