首页 > 开发 > 综合 > 正文

如何获取复制代理的详细日志

2024-07-21 02:06:19
字体:
来源:转载
供稿:网友

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 the publisher that has the publication that has the problem.4.click publication.5.
in the right-hand pane of sql enterprise manager is a list of the agents related to the publication. you see the snapshot agent, log reader agent and the push/pull subscription agent.6.identify the agent for which you need 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, stop and restart the replication agent so that sql server logs the messages to the log file specified in step 9. if the file already exists, the agent appends the output to the file.
参考:http://support.microsoft.com/?id=312292
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表