Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What SP/View should I look at...
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00796880
Message ID:
00797456
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform