Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
RMO Enum all subscriptions
From Wiki
Use this base method to return a Data Table of all the subscriptions for a publication
- public DataTable EnumSubscriptions()
- {
- try
- {
- ServerConnection publisher = new ServerConnection(<distributor instance>);
- PublicationMonitor publicationMonitor = new PublicationMonitor();
- publicationMonitor.Name = <publication name>;
- publicationMonitor.DistributionDBName = <distributor database name>;
- publicationMonitor.PublisherName = <distributor instance>;
- publicationMonitor.PublicationDBName = <publication database name>;
- publicationMonitor.ConnectionContext = publisher;
- DataSet ds_subscriptions = publicationMonitor.EnumSubscriptions();
- return ds_subscriptions.Tables[0];
- }
- catch (Exception ex)
- {
- throw new ApplicationException(
- "The publication property could not be changed.", ex);
- }
- }
--onpnt 01:51, 30 December 2010 (GMT)



LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.