Does anyone know how to programmatically (T-SQL) get a list of replication agents. The list of agents is obviously shown under Replication Monitor / Publishers / Publisher and the Publication in Enterprise Manager. However, I need to write a .NET App that monitors the status of replication and perform numerous custom maintenance options for an admin user.
Is there an internal SP that can retrieve this information? The agents are Merge/Pull Subcribers.
For clarification of the list I'm looking for, see the GIF image link below: