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

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值