Article ID: 260342 - View products that this article applies to.
This article was previously published under Q260342
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57515, 58059 (SQLBUG_70)
The replication agents logreader and distribution might fail with the following error message:
Code 1007: Arithmetic overflow error converting %ls to data type %ls
When the delivery latencies of replication agents are high, the stored procedures that compute average delivery latency report the following error message:
Error 8115 Sev 16 Arithmetic overflow error converting %ls to data type %ls.
Locate the history table in the distribution database that corresponds with the type of agent that is failing. The logreader agent uses the mslogreader_history system table and the distribution agent uses the msdistribution_history system table. Set the delivery_latency value found in the history table to zero for the row with the latest "time" value in the time column for a given agent_id. For example:
The agent_id should be appropriately selected from distribution..msdistribution_agents.
The preceding workaround temporarily resolves the problem by allowing the agent to run but does not prevent the problem from happening again.
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799For more information, contact your primary support provider.
(http://support.microsoft.com/kb/274799/ )INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0