FIX: Error message when you run a query in Microsoft SQL Server 2005: "Msg 8624, Level 16, State 116 Internal Query Processor Error: The query processor could not produce a query plan"

Article translations Article translations
Article ID: 931329 - View products that this article applies to.
Microsoft distributes Microsoft SQL Server 2005 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 2005 fix release.
Expand all | Collapse all

On This Page

SUMMARY

This article describes the following about this hotfix release:
  • The issues that are fixed by this hotfix package
  • The prerequisites for installing the hotfix package
  • Information about whether you must restart the computer after you install the hotfix package
  • Information about whether the hotfix package is replaced by any other hotfix package
  • The files that are contained in the hotfix package

SYMPTOMS

When you run a query in Microsoft SQL Server 2005, you receive the following error message:
Msg 8624, Level 16, State 116 Internal Query Processor Error:
The query processor could not produce a query plan
This problem occurs if the following conditions are true:
  • The query contains at least one JOIN clause.
  • The query contains one or more subqueries that have no input tables.

RESOLUTION

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have Microsoft SQL Server 2005 Service Pack 1 (SP1) installed on the computer to install this hotfix.

Restart information

You must restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix is not replaced by any other hotfixes.

File information

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 item in Control Panel.
Collapse this tableExpand this table
File name File version File size Date Time Platform
Databasemailengine.dll 9.0.2219.0 75120 02-2-2007 22:02 x86
Logread.exe 2005.90.2219.0 400752 02-2-2007 22:03 x86
Microsoft.analysisservices.adomdclient.dll 9.0.2219.0 546160 02-2-2007 22:03 x86
Microsoft.analysisservices.deploymentengine.dll 9.0.2219.0 140656 02-2-2007 22:03 x86
Microsoft.analysisservices.dll 9.0.2219.0 1217904 02-2-2007 22:03 x86
Microsoft.sqlserver.mgdsqldumper.dll 2005.90.2219.0 78192 02-2-2007 22:03 x86
Microsoft.sqlserver.sqlenum.dll 9.0.2219.0 910704 02-2-2007 22:03 x86
Msasxpress.dll 9.0.2219.0 24944 02-2-2007 22:03 x86
Msgprox.dll 2005.90.2219.0 200560 02-2-2007 22:03 x86
Msmdlocal.dll 9.0.2219.0 15645552 02-2-2007 22:03 x86
Msmdredir.dll 9.0.2219.0 3993968 02-2-2007 22:03 x86
Mssqlsystemresource.ldf Not applicable 524288 02-2-2007 18:54 Not applicable
Mssqlsystemresource.mdf Not applicable 40108032 02-2-2007 18:54 Not applicable
Qrdrsvc.exe 2005.90.2219.0 369520 02-2-2007 22:03 x86
Rdistcom.dll 2005.90.2219.0 643440 02-2-2007 22:03 x86
Repldp.dll 2005.90.2219.0 187248 02-2-2007 22:03 x86
Replmerg.exe 2005.90.2219.0 320880 02-2-2007 22:03 x86
Replprov.dll 2005.90.2219.0 550256 02-2-2007 22:03 x86
Replrec.dll 2005.90.2219.0 784752 02-2-2007 22:03 x86
Replsub.dll 2005.90.2219.0 407408 02-2-2007 22:03 x86
Spresolv.dll 2005.90.2219.0 177008 02-2-2007 22:03 x86
Sqlaccess.dll 2005.90.2219.0 350576 02-2-2007 22:03 x86
Sqlagent90.exe 2005.90.2219.0 321392 02-2-2007 22:03 x86
Sqlservr.exe 2005.90.2219.0 28978088 02-2-2007 22:03 x86
Sysdbupg.sql Not applicable 218486 29-12-2006 13:53 Not applicable
Xmlsub.dll 2005.90.2219.0 195440 02-2-2007 22:04 x86
Xpstar90.dll 2005.90.2219.0 295280 02-2-2007 22:04 x86
Xpstar90.rll 2005.90.2219.0 155504 02-2-2007 22:03 x86

WORKAROUND

To work around this problem, use any of the following methods:
  • Rewrite the query so that the subquery contains at least one input table.
  • Add an OPTION (FORCE ORDER) query hint to the query.
  • Add a join hint to the JOIN clause of the query.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

This hotfix is also included in the cumulative update package (build 3161) for SQL Server 2005 Service Pack 2. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
935356 Cumulative update package (build 3161) for SQL Server 2005 Service Pack 2 is available

Properties

Article ID: 931329 - Last Review: November 20, 2007 - Revision: 1.5
APPLIES TO
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems Community Technology Preview
Keywords: 
kbautohotfix kbpubtypekc kbhotfixserver kberrmsg kbbug kbqfe kbfix KB931329

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com