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

distribution..MSPublications table shows publisher_id = 1

$
0
0

Hi,

I am running the query below for serveral years on different customers with an intention that distribution..MSpublications.publisher_id is always equal to your sys.servers.server_id

select top 1 publication, name, data_source, s.publisher_db  from distribution..MSpublications p, distribution..MSsubscriptions s, sys.servers
where p.publication_id=s.publication_id and p.publisher_id=s.publisher_id
and (server_id = s.publisher_id or server_id=s.subscriber_id)

I have got an issue recently on a customer where my publisher_id in the MSpublications table = 1 which then points to repl_distributor as seen in the screen shot below.

My question is to confirm following:

My assumption on the distribution..MSpublications.publisher_id is always equal to your sys.servers.server_id is correct

Regards,

IA


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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