Microsoft KB Archive/300383

= FIX: Initial Snapshot Fails with 8115 Error &quot;Arithmetic Overflow Error Converting Expression to Data Type Int&quot; =

Article ID: 300383

Article Last Modified on 10/16/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



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 &quot;Transferring Snapshot Files&quot; 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.

Additional query words: snapshot arithmetic overflow 8115

Keywords: kbbug kbfix kbsqlserv2000presp2fix KB300383

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.