Hi All,Im trying to build a query which will give me a snapshot of our replicated environment showing things such as the publisher server, published database, articles, job schedules, transaction type, subscriber server and subscriber db plus a few other bits like identity range management values etc.Im really struggling when trying to find where the subscriber server name is stored in the system tables. Im wondering if i need to query the subscription database and then somehow link back to the distributor on the distribution server.Would anyone be able to assists?Currently i have this.... Still very basic at the moment :-P[code="sql"]select P.Publication, P.Publisher_db, MS.Subscriber as MergeSubscriber,A.Article, S.subscriber_db from MSpublications Pleft join MSmerge_subscriptions MS on MS.publication_id = P.publication_id left join MSarticles A on A.publication_id = P.publication_idleft join MSsubscriptions S on S.publication_id = P.publication_id and S.article_id = A.Article_ID and S.subscriber_id >= 0order by P.Publication[/code]
↧