Select the product you need help with
PRB: Log Reader Agent Does Not Function and You Receive an Error Message During Transaction ReplicationArticle ID: 811030 - View products that this article applies to. SYMPTOMSWhen you use transaction replication to distribute the data,
you may experience the following symptoms: Log Reader Agent does not replicate the data and it displays the following error message: The process could not execute 'sp_replcmds' on servername. The log file contains the following information: Status: 2, code: 0, text: 'The process could not execute 'sp_replcmds' on servername'. The process could not execute 'sp_replcmds' on servername. Status: 2, code: 0, text: 'Timeout expired'. Disconnecting from Publisher servername The agent failed with a 'Retry' status. Try to run the agent at a later time. CAUSETo facilitate transactional replication, Log Reader Agent
moves the transactions that are marked for replication from the transaction log
on the publisher to the distribution database. You may receive this error
message when Log Reader Agent cannot move the transaction log within the time
limit that you set in the Log Reader Agent QueryTimeout property. WORKAROUNDTo work around this problem:
Warning If you decrease the value of the Log Reader Agent ReadBatchSize property, Log Reader Agent may take longer to process the transaction log. Therefore, run enough tests before you set the value of the ReadBatchSize and QueryTimeout properties to make sure that the Log Reader Agent performance has not degraded significantly. For information about how to create a new Log Reader Agent profile or to modify the Log Reader Agent existing profile, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/aa216617(SQL.80).aspx
(http://msdn2.microsoft.com/en-us/library/aa216617(SQL.80).aspx)
MORE INFORMATIONThe Log Reader Agent QueryTimeout property is defined as the waiting time in seconds before the
queries that the agent issues time out. Note For SQL Server 2000, the value of the QueryTimeout property must be a positive integer. The Log Reader Agent ReadBatchSize property specifies the maximum number of transactions that are read from the transaction log of the publishing database. Decrease the value of the ReadBatchSize property to reduce the time that Log Reader Agent takes to process a transaction log batch. REFERENCES
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
308865
(http://support.microsoft.com/kb/308865/
)
FIX: Logreader fails with "Could not execute Sp_replcmds" error message
315642
(http://support.microsoft.com/kb/315642/
)
Information that PSS needs to troubleshoot SQL Server replication
PropertiesArticle ID: 811030 - Last Review: May 30, 2007 - Revision: 6.5
| Article Translations |


Back to the top








