You are currently offline, waiting for your internet to reconnect

FIX: You may receive a "The query processor could not produce a query plan" error message in SQL Server when you run a query that includes multiple subqueries that use self-joins

This article has been archived. It is offered "as is" and will no longer be updated.
Bug #: 471380 (SQL Server 8.0)

Bug #: 471266 (SQL Server 8.0)


Microsoft distributes SQL Server 2000 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2000 fix release.
SYMPTOMS
When you try to run a complex query that includes multiple correlated subqueries and the subqueries use a self-join, you may not be able to run the query successfully. You may also receive the following error message:

Server: Msg 8623, Level 16, State 1, Line 1
Internal Query Processor Error: The query processor could not produce a query plan. Contact your primary support provider for more information.


You may also notice similar behavior when you try to run a merge replication agent for a merge publication that has dynamic filtering enabled.
RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For more information, 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

Hotfix information

The English version of this fix has the file attributes (or later) 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.
   Date         Time   Version            Size    File name   -------------------------------------------------------------------------------------   21-Apr-2004  06:38  2000.80.934.0      78,400  Console.exe         21-Apr-2004  06:38  2000.80.934.0     315,968  Custtask.dll        21-Apr-2004  06:38  2000.80.934.0      33,340  Dbmslpcn.dll        08-Apr-2004  09:12                    786,432  Distmdl.ldf   08-Apr-2004  09:12                  2,359,296  Distmdl.mdf   10-Oct-2003  06:18                        180  Drop_repl_hotfix.sql   21-Apr-2004  06:38  2000.80.934.0   1,905,216  Dtspkg.dll          21-Apr-2004  06:38  2000.80.934.0     528,960  Dtspump.dll         21-Apr-2004  06:38  2000.80.934.0   1,557,052  Dtsui.dll           21-Apr-2004  06:38  2000.80.934.0     639,552  Dtswiz.dll          10-Oct-2003  06:18                    747,927  Instdist.sql   10-Oct-2003  06:18                      1,581  Inst_repl_hotfix.sql   21-Apr-2004  06:38  2000.80.934.0      90,692  Msgprox.dll         21-Apr-2004  06:38  2000.80.934.0      62,024  Odsole70.dll        21-Apr-2004  06:39  2000.80.934.0      25,144  Opends60.dll        21-Apr-2004  06:38  2000.80.934.0      57,904  Osql.exe            21-Apr-2004  06:38  2000.80.934.0     279,104  Pfutil80.dll        10-Oct-2003  06:07                    550,780  Procsyst.sql   08-Apr-2004  09:12                     12,305  Qfe469315.sql   08-Apr-2004  09:12                     19,195  Qfe469571.sql   21-Apr-2004  03:02                  1,104,848  Replmerg.sql   21-Apr-2004  06:38  2000.80.934.0     221,768  Replprov.dll        21-Apr-2004  06:38  2000.80.934.0     307,784  Replrec.dll         21-Apr-2004  03:09  2000.80.934.0     159,813  Replres.rll   10-Oct-2003  06:18                  1,087,150  Replsys.sql   10-Oct-2003  06:18                    986,603  Repltran.sql   21-Apr-2004  06:38  2000.80.934.0     287,304  Rinitcom.dll        21-Apr-2004  06:38  2000.80.934.0      66,112  Semmap.dll          21-Apr-2004  06:38  2000.80.934.0      57,916  Semnt.dll           21-Apr-2004  06:38  2000.80.934.0     492,096  Semobj.dll          21-Apr-2004  03:46  2000.80.934.0     172,032  Semobj.rll   21-Apr-2004  06:38  2000.80.934.0      53,832  Snapshot.exe        11-Mar-2004  14:40                    117,834  Sp3_serv_uni.sql   21-Apr-2004  06:37  2000.80.934.0      28,672  Sqlagent.dll        21-Apr-2004  06:38  2000.80.934.0     311,872  Sqlagent.exe        21-Apr-2004  06:37  2000.80.934.0     168,001  Sqlakw32.dll        21-Apr-2004  06:38  2000.80.934.0      33,344  Sqlctr80.dll        21-Apr-2004  06:38  2000.80.934.0   4,215,360  Sqldmo.dll          21-Apr-2004  06:38                     25,172  Sqldumper.exe       21-Apr-2004  02:56  2000.80.934.0      28,672  Sqlevn70.rll   21-Apr-2004  06:38  2000.80.934.0     180,792  Sqlmap70.dll        21-Apr-2004  06:38  2000.80.934.0     188,992  Sqlmmc.dll          21-Apr-2004  03:53  2000.80.934.0     479,232  Sqlmmc.rll   21-Apr-2004  06:38  2000.80.934.0     401,984  Sqlqry.dll          21-Apr-2004  06:38  2000.80.934.0      57,920  Sqlrepss.dll        21-Apr-2004  06:38  2000.80.934.0   7,626,833  Sqlservr.exe        21-Apr-2004  06:38  2000.80.934.0     590,396  Sqlsort.dll         21-Apr-2004  06:38  2000.80.934.0      45,644  Sqlvdi.dll          21-Apr-2004  06:38  2000.80.934.0     106,588  Sqsrvres.dll        21-Apr-2004  06:38  2000.80.934.0      33,340  Ssmslpcn.dll        21-Apr-2004  06:38  2000.80.934.0      82,492  Ssnetlib.dll        21-Apr-2004  06:38  2000.80.934.0      25,148  Ssnmpn70.dll        21-Apr-2004  06:38  2000.80.934.0     123,456  Stardds.dll         21-Apr-2004  06:38  2000.80.934.0     158,240  Svrnetcn.dll        21-Apr-2004  06:38  2000.80.934.0      76,416  Svrnetcn.exe        21-Apr-2004  06:38  2000.80.934.0      45,132  Ums.dll             21-Apr-2004  06:38  2000.80.934.0      98,872  Xpweb70.dll      
Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.
WORKAROUND
To work around this problem, use the FORCE ORDER query hint to force the join order. However, if you force the join order, the query optimizer may not generate the optimal query plan, and you may experience slow query performance.

For more information about how to use the FORCE ORDER query hint, see the "OPTION Clause" topic in SQL Server Books Online.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

This problem was first corrected in Microsoft SQL Server 2000 Service Pack 4.
REFERENCES
For additional information about an 8623 error message, click the following article numbers to view the articles in the Microsoft Knowledge Base:
302825 FIX: Complex join query with views and redundant tables may cause error 8623

818729 FIX: Internal query processor error 8623 when Microsoft SQL Server tries to compile a plan for a complex query

826815 FIX: You receive an 8623 error message in SQL Server when you try to run a query that has multiple correlated subqueries


For additional information about software updates, 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
Properties

Article ID: 841404 - Last Review: 12/08/2015 07:08:32 - Revision: 2.3

Microsoft SQL Server 2000 Developer Edition, Microsoft SQL Server 2000 Standard Edition, Microsoft SQL Server 2000 Enterprise Edition, Microsoft SQL Server 2000 Personal Edition, Microsoft SQL Server 2000, Workgroup Edition, Microsoft SQL Server 2000 Desktop Engine (Windows), Microsoft SQL Server 2000 Enterprise Edition 64-bit

  • kbnosurvey kbarchive kbquery kberrmsg kbtsql kbsqlserv2000presp4fix kbfix kbbug kbhotfixserver kbqfe KB841404
Feedback