FIX: Initial Snapshot Fails with 8115 Error "Arithmetic Overflow Error Converting Expression to Data Type Int" (300383)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q300383
BUG #:354275 (SHILOH_BUGS)

SYMPTOMS

The initial snapshot generation may fail with the following error message if the rowcount of a published table is in the hundreds of millions:
SourceTypeId = 5
SourceName = SQL2K\Named1
ErrorCode = 8115
ErrorText = Arithmetic overflow error converting expression to data type int.
Repl Agent Status: 6
Disconnecting from Publisher 'SQL2K\Named1'
The error message is more prominent when the published tables contain 100 million or more rows.

CAUSE

This error occurs when the rowcount of the table is greater than 100 million because the value that is being passed to a variable in the sp_MSestimatesnapshotworkload stored procedure exceeds the size limitations for an int data type, which then causes an overflow error to occur.

RESOLUTION

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

Hotfix

NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 2.

The English version of this fix should have the following file attributes or later:
   Version    File name     Platform
   ---------------------------------
   8.00.406   s80406i.exe   x86
				
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.

WORKAROUND

To work around this problem manually synchronize the subscriber with the publisher before replicating.

For more information about how to manually synchronize the subscriber, open SQL Server Books Online. In the SQL Server Books Online dialog box, click Go, and then click URL. In the Jump to URL dialog box, type:

replsql.chm::/replimpl_52ib.htm

Click OK.

You may also refer to the "Transferring Snapshot Files" topic in SQL Server 2000 Books Online.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 2000. This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

Modification Type:MajorLast Reviewed:10/16/2003
Keywords:kbBug kbfix kbSQLServ2000preSP2Fix KB300383