FIX: Error message when you run a query that contains duplicate join conditions in SQL Server 2005: "Internal Query Processor Error: The query processor could not produce a query plan"

Article translations Article translations
Article ID: 971409 - 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

SYMPTOMS

In Microsoft SQL Server 2005, you run a query that uses joins. You specify duplicate join conditions in the FROM clause and the WHERE clause. When you run the query, you may receive the following error message:

Msg 8624, Level 16, State 1, Line 31
Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.
Note You can run the same query successfully in SQL Server 2000 and in SQL Server 2008.

RESOLUTION

Cumulative update information

The fix for this issue was first released in Cumulative Update 4 for SQL Server 2005 Service Pack 3. For more information about this cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:
970279 Cumulative update package 4 for SQL Server 2005 Service Pack 3
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2005 fix release. Microsoft recommends that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
960598 The SQL Server 2005 builds that were released after SQL Server 2005 Service Pack 3 was released
Microsoft SQL Server 2005 hotfixes are created for specific SQL Server service packs. You must apply a SQL Server 2005 Service Pack 3 hotfix to an installation of SQL Server 2005 Service Pack 3. By default, any hotfix that is provided in a SQL Server service pack is included in the next SQL Server service pack.

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 the problem described in this article. 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

  • SQL Server 2005 Service Pack 3
    For more information about how to obtain SQL Server 2005 Service Pack 3, click the following article number to view the article in the Microsoft Knowledge Base:
    913089 How to obtain the latest service pack for SQL Server 2005

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 of 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 item in Control Panel.
For all supported x86-based versions of SQL Server 2005
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Chsbrkr.dll12.0.9729.01,682,28829-Jan-200903:04x86
Chtbrkr.dll12.0.9729.06,110,06429-Jan-200903:04x86
Distrib.exe2005.90.4224.067,43215-May-200923:03x86
Dtspipeline.dll2005.90.4224.0601,96015-May-200923:03x86
Dtspipelineperf.dll2005.90.4224.030,05615-May-200923:03x86
Fteref.dll12.0.9729.0446,46429-Jan-200903:04x86
Infosoft.dll12.0.9729.0465,76029-Jan-200903:04x86
Korwbrkr.dll12.0.9729.068,44829-Jan-200903:04x86
Langwrbk.dll12.0.9729.0133,98429-Jan-200903:04x86
Logread.exe2005.90.4224.0399,19215-May-200923:07x86
Microsoft.sqlserver.maintenanceplantasks.dll9.0.4224.0292,69615-May-200923:07x86
Microsoft.sqlserver.replication.dll2005.90.4224.01,625,43215-May-200923:07x86
Microsoft.sqlserver.smo.dll9.0.4224.01,603,41615-May-200923:08x86
Microsoft.sqlserver.smoenum.dll9.0.4224.0218,98415-May-200923:08x86
Microsoft.sqlserver.sqlenum.dll9.0.4224.0919,40015-May-200923:08x86
Microsoft.sqlserver.webservicetask.dll9.0.4224.096,08815-May-200923:08x86
Msfte.dll12.0.9729.02,427,76029-Jan-200903:04x86
Msftefd.exe12.0.9729.064,35229-Jan-200903:04x86
Msftepxy.dll12.0.9729.093,04029-Jan-200903:04x86
Msftesql.exe12.0.9729.093,04029-Jan-200903:04x86
Msgprox.dll2005.90.4224.0196,96815-May-200923:08x86
Msir5jp.dll5.0.2130.03,157,34429-Jan-200903:04x86
Mssqlsystemresource.ldfNot Applicable524,28815-May-200920:03Not Applicable
Mssqlsystemresource.mdfNot Applicable40,304,64015-May-200920:03Not Applicable
Nlhtml.dll12.0.9729.0121,69629-Jan-200903:04x86
Nls400.dll5.0.7112.012,287,32829-Jan-200903:04x86
Query9x.dll12.0.9729.045,93629-Jan-200903:04x86
Rdistcom.dll2005.90.4224.0644,45615-May-200923:08x86
Repldp.dll2005.90.4224.0185,17615-May-200923:08x86
Replmerg.exe2005.90.4224.0317,78415-May-200923:08x86
Replprov.dll2005.90.4224.0551,25615-May-200923:08x86
Replrec.dll2005.90.4224.0782,68015-May-200923:08x86
Replsub.dll2005.90.4224.0405,35215-May-200923:08x86
Sbmsmdlocal.dll9.0.4224.015,982,44015-May-200923:08x86
Snapshot.exe9.0.4224.011,09615-May-200923:10x86
Sqlaccess.dll2005.90.4224.0346,98415-May-200923:10x86
Sqlagent90.exe2005.90.4224.0345,96015-May-200923:10x86
Sqlatxss90.dll2005.90.4224.023,40015-May-200923:02x86
Sqlmergx.dll2005.90.4224.0191,32015-May-200923:10x86
Sqlservr.exe2005.90.4224.029,275,48015-May-200923:10x86
Sqltaskconnections.dll2005.90.4224.0104,29615-May-200923:10x86
Sqlwep.dll2005.90.4224.087,38415-May-200923:10x86
Thawbrkr.dll12.0.9729.0203,61629-Jan-200903:04x86
Xmlfilt.dll12.0.9729.0195,44029-Jan-200903:04x86
Xmlsub.dll2005.90.4224.0192,36015-May-200923:10x86
For all supported x64-based versions of SQL Server 2005
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Chsbrkr.dll12.0.9729.01,691,48829-Jan-200904:57x64
Chtbrkr.dll12.0.9729.06,106,99229-Jan-200904:57x64
Distrib.exe2005.90.4224.083,30416-May-200900:42x64
Dtspipeline.dll2005.90.4224.01,065,81616-May-200900:42x64
Dtspipelineperf.dll2005.90.4224.040,80816-May-200900:42x64
Fteref.dll12.0.9729.0433,15229-Jan-200904:57x64
Infosoft.dll12.0.9729.0618,86429-Jan-200904:57x64
Korwbrkr.dll12.0.9729.099,16829-Jan-200904:57x64
Langwrbk.dll12.0.9729.0234,33629-Jan-200904:57x64
Logread.exe2005.90.4224.0525,16016-May-200900:46x64
Microsoft.sqlserver.maintenanceplantasks.dll9.0.4224.0292,69615-May-200923:07x86
Microsoft.sqlserver.replication.dll2005.90.4224.01,816,42416-May-200900:46x64
Microsoft.sqlserver.smo.dll9.0.4224.01,603,43216-May-200900:46x86
Microsoft.sqlserver.smoenum.dll9.0.4224.0218,98416-May-200900:46x86
Microsoft.sqlserver.sqlenum.dll9.0.4224.0919,40016-May-200900:46x86
Microsoft.sqlserver.webservicetask.dll9.0.4224.096,10416-May-200900:46x86
Msfte.dll12.0.9729.03,805,55229-Jan-200904:57x64
Msftefd.exe12.0.9729.096,62429-Jan-200904:57x64
Msftepxy.dll12.0.9729.0124,76829-Jan-200904:57x64
Msftesql.exe12.0.9729.0156,01629-Jan-200904:57x64
Msgprox.dll2005.90.4224.0258,92016-May-200900:46x64
Msir5jp.dll5.0.2130.03,418,99229-Jan-200904:57x64
Mssqlsystemresource.ldfNot Applicable524,28815-May-200920:03Not Applicable
Mssqlsystemresource.mdfNot Applicable40,304,64015-May-200920:03Not Applicable
Nlhtml.dll12.0.9729.0189,28029-Jan-200904:57x64
Nls400.dll5.0.7112.014,101,87229-Jan-200904:57x64
Query9x.dll12.0.9729.065,90429-Jan-200904:57x64
Rdistcom.dll2005.90.4224.0821,09616-May-200900:47x64
Repldp.dll2005.90.4224.0185,17615-May-200923:08x86
Repldp.dll2005.90.4224.0236,90416-May-200900:47x64
Replmerg.exe2005.90.4224.0414,56816-May-200900:47x64
Replprov.dll2005.90.4224.0750,95216-May-200900:47x64
Replrec.dll2005.90.4224.01,010,53616-May-200900:47x64
Replsub.dll2005.90.4224.0508,77616-May-200900:47x64
Sbmsmdlocal.dll9.0.4224.015,982,44015-May-200923:08x86
Snapshot.exe9.0.4224.011,09615-May-200923:10x86
Snapshot.exe9.0.4224.011,11216-May-200900:47x86
Sqlaccess.dll2005.90.4224.0354,15216-May-200900:47x86
Sqlagent90.exe2005.90.4224.0425,32016-May-200900:47x64
Sqlatxss90.dll2005.90.4224.029,03216-May-200900:42x64
Sqlmergx.dll2005.90.4224.0233,83216-May-200900:48x64
Sqlservr.exe2005.90.4224.039,734,12016-May-200900:48x64
Sqltaskconnections.dll2005.90.4224.0150,37616-May-200900:48x64
Sqlwep.dll2005.90.4224.087,38415-May-200923:10x86
Sqlwep.dll2005.90.4224.0120,16816-May-200900:48x64
Thawbrkr.dll12.0.9729.0207,21629-Jan-200904:57x64
Xmlfilt.dll12.0.9729.0267,63229-Jan-200904:57x64
Xmlsub.dll2005.90.4224.0335,19216-May-200900:48x64
For all supported Itanium-based versions of SQL Server 2005
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Chsbrkr.dll12.0.9729.01,880,94429-Jan-200903:56IA-64
Chtbrkr.dll12.0.9729.06,152,04829-Jan-200903:56IA-64
Distrib.exe2005.90.4224.0197,46416-May-200903:22IA-64
Dtspipeline.dll2005.90.4224.01,930,08816-May-200903:22IA-64
Dtspipelineperf.dll2005.90.4224.081,76816-May-200903:22IA-64
Fteref.dll12.0.9729.0433,15229-Jan-200903:57IA-64
Infosoft.dll12.0.9729.01,912,68829-Jan-200903:56IA-64
Korwbrkr.dll12.0.9729.0180,08029-Jan-200903:56IA-64
Langwrbk.dll12.0.9729.0330,60829-Jan-200903:56IA-64
Logread.exe2005.90.4224.01,100,13616-May-200903:26IA-64
Microsoft.sqlserver.maintenanceplantasks.dll9.0.4224.0292,69615-May-200923:07x86
Microsoft.sqlserver.replication.dll2005.90.4224.02,530,66416-May-200903:26IA-64
Microsoft.sqlserver.smo.dll9.0.4224.01,603,43216-May-200903:26x86
Microsoft.sqlserver.smoenum.dll9.0.4224.0218,98416-May-200903:26x86
Microsoft.sqlserver.sqlenum.dll9.0.4224.0919,40016-May-200903:26x86
Microsoft.sqlserver.webservicetask.dll9.0.4224.096,10416-May-200903:26x86
Msfte.dll12.0.9729.07,069,55229-Jan-200903:56IA-64
Msftefd.exe12.0.9729.0170,84829-Jan-200903:56IA-64
Msftepxy.dll12.0.9729.0132,97629-Jan-200903:56IA-64
Msftesql.exe12.0.9729.0292,19229-Jan-200903:56IA-64
Msgprox.dll2005.90.4224.0542,05616-May-200903:26IA-64
Msir5jp.dll5.0.2130.03,821,93629-Jan-200903:57IA-64
Mssqlsystemresource.ldfNot Applicable524,28815-May-200920:03Not Applicable
Mssqlsystemresource.mdfNot Applicable40,304,64015-May-200920:03Not Applicable
Nlhtml.dll12.0.9729.0293,23229-Jan-200903:57IA-64
Nls400.dll5.0.7112.014,747,50429-Jan-200903:57IA-64
Query9x.dll12.0.9729.0120,67229-Jan-200903:57IA-64
Rdistcom.dll2005.90.4224.01,888,08816-May-200903:27IA-64
Repldp.dll2005.90.4224.0185,17615-May-200923:08x86
Repldp.dll2005.90.4224.0512,34416-May-200903:27IA-64
Replmerg.exe2005.90.4224.0954,72816-May-200903:27IA-64
Replprov.dll2005.90.4224.01,627,48016-May-200903:27IA-64
Replrec.dll2005.90.4224.02,146,66416-May-200903:27IA-64
Replsub.dll2005.90.4224.01,156,95216-May-200903:27IA-64
Sbmsmdlocal.dll9.0.4224.050,026,34416-May-200903:26IA-64
Snapshot.exe9.0.4224.011,09615-May-200923:10x86
Snapshot.exe9.0.4224.011,11216-May-200903:28x86
Sqlaccess.dll2005.90.4224.0348,52016-May-200903:28x86
Sqlagent90.exe2005.90.4224.01,251,16016-May-200903:28IA-64
Sqlatxss90.dll2005.90.4224.056,16816-May-200903:22IA-64
Sqlmergx.dll2005.90.4224.0443,73616-May-200903:28IA-64
Sqlservr.exe2005.90.4224.072,908,13616-May-200903:28IA-64
Sqltaskconnections.dll2005.90.4224.0314,21616-May-200903:28IA-64
Sqlwep.dll2005.90.4224.087,38415-May-200923:10x86
Sqlwep.dll2005.90.4224.0217,43216-May-200903:28IA-64
Thawbrkr.dll12.0.9729.0250,72029-Jan-200903:56IA-64
Xmlfilt.dll12.0.9729.0441,20029-Jan-200903:57IA-64
Xmlsub.dll2005.90.4224.0578,90416-May-200903:29IA-64

WORKAROUND

To work around this issue, use one of the following methods:
  • Add the FORCE ORDER hint to the query.
  • Remove the redundant join condition from the query.

STATUS

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

REFERENCES

For more information about the list of builds that are available after SQL Server 2005 Service Pack 3, click the following article number to view the article in the Microsoft Knowledge Base:
960598 The SQL Server 2005 builds that were released after SQL Server 2005 Service Pack 3 was released
For more information about the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base:
935897 An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems
For more information about how to obtain SQL Server 2005 Service Pack 3, click the following article number to view the article in the Microsoft Knowledge Base:
913089 How to obtain the latest service pack for SQL Server 2005
For more information about the new features and the new improvements in SQL Server 2005 Service Pack 3, visit the following Microsoft Web site:
http://go.microsoft.com/fwlink/?LinkId=131442
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 software update terminology, 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: 971409 - Last Review: August 24, 2009 - Revision: 2.0
APPLIES TO
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Workgroup Edition
Keywords: 
kbsurveynew kbfix kbqfe kbexpertiseadvanced KB971409

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