How to obtain a detailed log of replication agents

Source: Internet
Author: User
Tags log
1.
In SQL Enterprise Manager, click the Replication Monitor Node to open the Replication monitor on the server configured as The Distributor.2.click Open on the publishers Node.3.click is the publisher that has the publication of that has. Click publication.5.
In the right-hand pane of SQL Enterprise Manager are a list of the agents related to the publication. You are the Snapshot agent, Log Reader agent and the Push/pull Subscription agent.6.identify the agent for which To set up output logging. 7.right-click The Replication agent you identified in step 6, and then click Agent Properties. 8.Click the Steps tab, and then edit the Run Agent step. 9.At the end of the string under command, add:

-output C:tempoutputfile.txt-outputverboselevel [0|1|2]

Specify either 0, 1, or 2 after the-outputverboselevel parameter. 10.Click OK to save the changes, and then close the Edit Job Step dialog box. 11.Click OK to save the changes, and then close the Replication Agent Properties dialog box. If the agent is set to run continuously, the stop and restart the Replication agent so this SQL Server logs the messages to th E log file specified in step 9. If the file already exists, the agent appends the output to the file.
Reference: http://support.microsoft.com/?id=312292

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.