Article ID: 312292 - Last Review: December 30, 2005 - Revision: 5.4 How to enable replication agents for logging to output files in SQL ServerThis article was previously published under Q312292 On This PageSUMMARY
You can configure the SQL Server replication agents such as, the Snapshot Agent, Log Reader Agent, Queue Reader Agent, Distribution Agent, and Merge Agent to capture more information about error messages and procedure calls to a text file. For example, you can capture the additional information about error messages and procedure calls to troubleshoot agent failures. If you encounter an agent failure, the default agent history may be inadequate to troubleshoot the principal cause of the failure. In this case, you may find verbose agent output useful. This article explains how to export verbose agent activity to a text file. Note Configuring replication agents to output to a log file degrades performance for the replication agents because SQL Server prompts the agent to write verbose details about its activity to an output log. You should also write the log to a disk that has adequate free space to accommodate the data output by the agent. You must remove the additional parameters as soon as you identify the replication failures. Otherwise, you will have a replication agent that is continuously writing verbose output to the output log, which you do not need after you identify the cause of the failure. The following options are provided for each of the replication agents to enable logging to an output file:
Note that the output file can grow to a very large size quickly. Hence, make sure there is enough space to accommodate such a large file. The exact size of the file depends on when the error occurs during the execution of the agent and when the agent stops. In addition, if you leave the parameters on after you fix the agent errors, all replication activities continue to append to the file and the program consumes disk space is very quickly. How to enable output logging for a replication agentYou can use the following steps with Microsoft SQL Server 2000 Enterprise Manager or Microsoft SQL Server 7.0 Enterprise Manager.Note If you need to set up the output logging for a Pull Subscription Agent with the SQL Server 7.0 Enterprise Manager, you cannot use the following steps. Refer to the "How to enable output logging for a Pull Subscription Agent with SQL Server 7.0 Enterprise Manager" heading of this article instead. Note If you are using SQL Server 2005 to set up the output parameter for a agent, see the "How to: Work with Replication Agent Profiles (SQL Server Management Studio)" topic in SQL Server 2005 Books Online.
How to enable output logging for a pull subscription agent with SQL Server 7.0 Enterprise Manager
REFERENCES
SQL Server 2000 Books Online; topics: "Replication Agents"; "Replication Snapshot Agent Utility"; "Replication Log Reader Agent Utility"; "Replication Distribution Agent Utility"; "Replication Queue Reader Agent Utility"; "Replication Merge Agent Utility" APPLIES TO
| Article Translations
|
Back to the top
