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 INNER JOIN MSpublications p ON a.publication_id = p.publication_id INNER JOIN MSsubscriptions s ON p.publication_id = s.publication_id INNER JOIN master..sysservers ss ON s.subscriber_id = ss.srvid INNER JOIN master..sysservers srv ON srv.srvid = p.publisher_id INNER JOIN MSdistribution_agents da ON da.publisher_id = p.publisher_id AND da.subscriber_id = s.subscriber_id ORDER BY 1 ,2 ,3
Labels
- Differences (38)
- MongoDB (13)
- MySQL (10)
- Oracle (6)
- ORACLE DBA (1)
- Performance Tuning (13)
- PTuning (3)
- Scenarios (4)
- Scripts (35)
- SQLDBA (99)
- SQLDeveloper (66)
- SSIS (5)
- SSRS (8)
- Troubleshooting (37)
Friday, 4 October 2019
Find Publisher and Subscriber details along with distribution agent job details in Replication
Labels:
Scripts
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment