Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What SP/View should I look at...
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00796880
Message ID:
00797456
Vues:
12
FYI - I found that this query gets the info you need to programatically find out when each agent last succeeded.

SELECT a.publisher_db, a.ID, MAX(TIME) lastsuccess
FROM distribution..msmerge_history mh
INNER JOIN
(
SELECT a.publisher_db, MAX(ID) ID
FROM distribution..msmerge_agents a,
master..sysservers s
WHERE a.subscriber_id = s.srvid
GROUP BY a.publisher_db ) a ON a.ID = mh.agent_id
WHERE runstatus = 2
GROUP BY a.publisher_db, a.STORE, a.ID
Thanx,
Bill Elvin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform