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 Generate snapshots
From Wiki
Use this base method to generate a snapshot for a publication.
- public void InitSnapshot()
- {
- string publicationName = <publication name>;
- string publicationDbName = <publication database>;
- string publisherName = <publication instance>;
- string distributorName = <distrinutor instance>;
- SnapshotGenerationAgent agent;
- try
- {
- agent = new SnapshotGenerationAgent();
- agent.Distributor = distributorName;
- agent.DistributorSecurityMode = SecurityMode.Integrated;
- agent.Publisher = publisherName;
- agent.PublisherSecurityMode = SecurityMode.Integrated;
- agent.Publication = publicationName;
- agent.PublisherDatabase = publicationDbName;
- agent.ReplicationType = ReplicationType.Merge;
- agent.GenerateSnapshot();
- }
- catch (Exception ex)
- {
- throw new ApplicationException(String.Format(
- "A snapshot could not be generated for the {0} publication."
- , publicationName), ex);
- }
- }
--onpnt 01:19, 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.