Microsoft KB Archive/907009

= FIX: You may receive the &quot;Server Msg 8630, Level 17, State 34, Procedure, Line nn

Internal Query Processor Error: The query processor encountered an unexpected error during execution.

Note This problem may not occur in SQL Server 2000 with Service Pack 3 (SP3).



CAUSE
This problem may occur because new checks were added to the SQL Server compiler after SQL Server build 2000.80.0929. The new checks make sure that the submitted query does not cause a stack overflow.



Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next SQL Server 2000 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
 Microsoft SQL Server 2000 Service Pack 4 (SP4)

For more information about how to obtain SQL Server 2000 SP4, click the following article number to view the article in the Microsoft Knowledge Base:

290211 How to obtain the latest SQL Server 2000 service pack



Restart information
You do not have to restart the computer after you apply this hotfix.

Registry information
You do not have to change the registry.

Hotfix file information
This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain all the files that you must have to fully update a product to the latest build.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

SQL Server 2000 32-bit versions
  Date         Time   Version         Size       File name ---  06-Jun-2005  22:46  8.11.50523.0      239,104  Mssdi98.dll 15-Sep-2005 20:37  2000.80.2159.0    290,816  Ntwdblib.dll 15-Sep-2005 20:37  2000.80.2159.0     69,632  Odsole70.dll 04-May-2005 04:32  2000.80.2039.0     57,344  Osql.exe 15-Sep-2005 20:37  2000.80.2159.0    430,080  Pfclnt80.dll 17-Jun-2005 00:15                    552,068  Procsyst.sql 15-Sep-2005 20:37  2000.80.2159.0    237,568  Replprov.dll 15-Sep-2005 20:37  2000.80.2159.0    856,064  Semexec.dll 17-Jun-2005 00:15                     18,810  Sp4_serv_qfe.sql 15-Sep-2005 19:04  2000.80.2159.0    323,584  Sqlagent.exe 15-Sep-2005 19:52  2000.80.2159.0    118,784  Sqldiag.exe 15-Sep-2005 20:37  2000.80.2159.0  4,362,240  Sqldmo.dll 15-Sep-2005 20:37  2000.80.2159.0     45,056  Sqlevn70.rll 15-Sep-2005 19:12  2000.80.2159.0    102,400  Sqlfth75.dll 15-Sep-2005 20:40  2000.80.2159.0  9,158,656  Sqlservr.exe 15-Sep-2005 20:37  2000.80.2159.0    176,128  Stardds.dll 15-Sep-2005 20:37  2000.80.2159.0    110,592  Svrnetcn.dll 15-Sep-2005 20:37  2000.80.2159.0     35,328  Ums.dll

SQL Server 2000 64-bit version
  Date         Time   Version         Size        File name      Platform ---  16-Sep-2005  12:46  8.11.50523.0       758,784  Mssdi98.dll    IA-64 16-Sep-2005 12:46  7.10.3052.4        348,160  Msvcr71.dll    x86 16-Sep-2005 12:46  2000.80.2159.0     150,528  Odsole70.dll   IA-64 16-Sep-2005 12:46  2000.80.2159.0   1,187,840  Pfclnt80.dll   IA-64 16-Sep-2005 12:46                     552,068  Procsyst.sql 16-Sep-2005 12:46  2000.80.2159.0     538,624  Replprov.dll   IA-64 16-Sep-2005 12:46  2000.80.2159.0     538,624  Replprov2.dll  IA-64 16-Sep-2005 12:46  2000.80.2159.0   1,061,376  Sqlagent.exe   IA-64 16-Sep-2005 12:46  2000.80.2159.0     334,336  Sqldiag.exe    IA-64 16-Sep-2005 12:46  2000.80.2159.0   4,362,240  Sqldmo.dll     x86 16-Sep-2005 12:46  2000.80.2159.0     246,784  Sqlfth75.dll   IA-64 16-Sep-2005 12:46  2000.80.2159.0  24,944,640  Sqlservr.exe   IA-64 16-Sep-2005 12:46  2000.80.2159.0     427,520  Svrnetcn.dll   IA-64 Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
A query may generate a large query plan when one or more of the following conditions are true:
 * A query has many constraints.
 * A query joins many tables.
 * A query contains a large IN clause.
 * A query maintains many indexes or indexed views.

For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:

822499 New naming schema for Microsoft SQL Server software update packages

For more information about the terminology that Microsoft uses when Microsoft corrects software after it is released, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbbug kbfix kbqfe kbsqlserv2000presp4fix kbpubtypekc kbhotfixserver KB907009

-

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

© Microsoft Corporation. All rights reserved.