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

Replication issue.

$
0
0

Hi Experts,

I am in a situation where I need to find below:

  1. To document each publication, each subscription to this publication.
  2. Type of replication for these publication, whether it is a pull or push?
  3. frequency of the jobs (if snapshot is scheduled, how often?
  4. Does distribution job run continuously or on what frequency?

I did google to get publication with their corresponding subscription, I got below query:

USE Distribution 
GO 
--SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED 
-- Get the publication name based on article 
SELECT DISTINCT  
srv.srvname publication_server  
, a.publisher_db 
, p.publication publication_name 
 --a.article 
--a.destination_object 
, ss.srvname subscription_server 
, s.subscriber_db 
, da.name AS distribution_agent_job_name 
FROM MSArticles a  
JOIN MSpublications p ON a.publication_id = p.publication_id 
JOIN MSsubscriptions s ON p.publication_id = s.publication_id 
JOIN master..sysservers ss ON s.subscriber_id = ss.srvid 
JOIN master..sysservers srv ON srv.srvid = p.publisher_id 
JOIN MSdistribution_agents da ON da.publisher_id = p.publisher_id  
     AND da.subscriber_id = s.subscriber_id 
ORDER BY 1,2,3  

And to get type of replication I found this query below:

SELECT
     P.Publication,P.Publication_type,S.Subscriber_ID,S.Update_ModeFROM MSPublications PINNERJOIN MSSubscriptions SON P.Publication_ID = S.Publication_ID

Now can I get a single query where I can get all the above information what I need, can someone please help me in finding me query.

Thanks in advance.


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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