Hi,
Server A -->publisher and Distributor
Server B -->Subscriber
TX Replication,Pull Subscription.
Q:) we have configured replication and we are monitoring the replication using the following command
exec [distribution].sys.sp_replmonitorhelpsubscription @publisher = @@ServerName, @publication_type=0
GO
from this query we checking the status column for monitoring the replication.
at some time some subscription are missing where the data in publication and subscription are mismatch.
so,we execute the above query it looks fine that it cant displaying the subscription. In Replication monitor when we check particular publisher there is no subscription for that particular publisher. but in subscriber the subscription is present. so what we do that is delete the subscription and recreate the subscription and make the re-initilize the subscription.
what we want is --> why the subscription is missing how can we find out it reasons ?
how to create a alert for this type of monitoring when subscription is missing(we check the column never expire subscriptionies)?