FIX: Error message when you run a query inside a stored procedure in SQL Server 2005: "Internal query processor error" (916795)
The information in this article applies to:
- Microsoft SQL Server 2005 Enterprise Edition
- Microsoft SQL Server 2005 Developer Edition
- Microsoft SQL Server 2005 Standard Edition
- Microsoft SQL Server 2005 Enterprise X64 Edition
- Microsoft SQL Server 2005 Standard X64 Edition
- Microsoft SQL Server 2005 Enterprise Edition for Itanium Based Systems
Bug #: 531 (SQL Hotfix)
SYMPTOMSWhen you run a query inside a stored procedure in Microsoft SQL Server 2005, the SQL Server Optimizer may be unable to produce an execution plan. Additionally, you may receive an error message that resembles the following: Server: Msg 8624, Level 16, State 116, Line 1
Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.
RESOLUTIONA 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 2005 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: 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. PrerequisitesNo prerequisites are required to apply this hotfix. Restart requirementYou do not have to restart the computer after you apply this hotfix. Hotfix replacement informationThis hotfix does not replace 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.SQL Server 2005 32-bit versions |
Hauresourcedb.ldf | Not Applicable | 524,288 | 21-Mar-2006 | 21:44 | Not Applicable | Hauresourcedb.mdf | Not Applicable | 39,780,352 | 21-Mar-2006 | 21:44 | Not Applicable | Microsoft.sqlserver.replication.dll | 2005.90.1534.0 | 1,608,408 | 22-Mar-2006 | 01:07 | x86 | Microsoft.sqlserver.smo | 9.0.1534.0 | 1,559,256 | 22-Mar-2006 | 01:07 | Not Applicable | Osql.exe | 2005.90.1534.0 | 51,416 | 22-Mar-2006 | 01:06 | x86 | Replrec.dll | 2005.90.1534.0 | 781,016 | 22-Mar-2006 | 01:07 | x86 | Sbmsmdlocal.dll | 9.0.1534.0 | 15,597,784 | 22-Mar-2006 | 01:07 | x86 | Sbmsmdredir.dll | 9.0.1534.0 | 3,927,256 | 22-Mar-2006 | 01:07 | x86 | Sqlaccess.dll | 2005.90.1534.0 | 349,400 | 22-Mar-2006 | 01:07 | x86 | Sqldiag.exe | 2005.90.1534.0 | 960,216 | 22-Mar-2006 | 01:07 | x86 | Sqlservr.exe | 2005.90.1534.0 | 28,780,816 | 22-Mar-2006 | 01:07 | x86 | Template_hauresourcedb.ldf | Not Applicable | 524,288 | 21-Mar-2006 | 21:44 | Not Applicable | Template_hauresourcedb.mdf | Not Applicable | 39,780,352 | 21-Mar-2006 | 21:44 | Not Applicable |
SQL Server 2005 x64 edition |
Hauresourcedb.ldf | Not Applicable | 524,288 | 21-Mar-2006 | 21:44 | Not Applicable | Hauresourcedb.mdf | Not Applicable | 39,780,352 | 21-Mar-2006 | 21:44 | Not Applicable | Microsoft.sqlserver.replication.dll | 2005.90.1534.0 | 1,813,720 | 22-Mar-2006 | 23:20 | x64 | Microsoft.sqlserver.smo | 9.0.1534.0 | 1,551,064 | 22-Mar-2006 | 23:20 | Not Applicable | Osql.exe | 2005.90.1534.0 | 83,672 | 22-Mar-2006 | 23:19 | x64 | Replrec.dll | 2005.90.1534.0 | 1,007,320 | 22-Mar-2006 | 23:20 | x64 | Sbmsmdlocal.dll | 9.0.1534.0 | 15,597,784 | 22-Mar-2006 | 01:07 | x86 | Sbmsmdredir.dl | 9.0.1534.0 | 3,927,256 | 22-Mar-2006 | 01:07 | Not Applicable | Sqlaccess.dll | 2005.90.1534.0 | 356,568 | 22-Mar-2006 | 23:20 | x86 | Sqldiag.exe | 2005.90.1534.0 | 1,127,640 | 22-Mar-2006 | 23:20 | x64 | Sqlservr.exe | 2005.90.1534.0 | 39,442,648 | 22-Mar-2006 | 23:19 | x64 | Template_hauresourcedb.ldf | Not Applicable | 524,288 | 21-Mar-2006 | 21:44 | Not Applicable | Template_hauresourcedb.mdf | Not Applicable | 39,780,352 | 21-Mar-2006 | 21:44 | Not Applicable |
SQL Server 2005 Itanium-based versions |
Hauresourcedb.ldf | Not Applicable | 524,288 | 21-Mar-2006 | 21:44 | Not Applicable | Hauresourcedb.mdf | Not Applicable | 39,780,352 | 21-Mar-2006 | 21:44 | Not Applicable | Microsoft.sqlserver.replication.dll | 2005.90.1534.0 | 2,521,816 | 22-Mar-2006 | 05:04 | IA-64 | Microsoft.sqlserver.smo | 9.0.1534.0 | 1,551,064 | 22-Mar-2006 | 05:03 | Not Applicable | Osql.exe | 2005.90.1534.0 | 123,096 | 22-Mar-2006 | 05:02 | IA-64 | Replrec.dll | 2005.90.1534.0 | 2,137,816 | 22-Mar-2006 | 05:04 | IA-64 | Sbmsmdlocal.dll | 9.0.1534.0 | 48,464,088 | 22-Mar-2006 | 05:02 | IA-64 | Sbmsmdredir.dll | 9.0.1534.0 | 6,073,560 | 22-Mar-2006 | 05:04 | IA-64 | Sqlaccess.dll | 2005.90.1534.0 | 351,448 | 22-Mar-2006 | 05:03 | x86 | Sqldiag.exe | 2005.90.1534.0 | 1,637,080 | 22-Mar-2006 | 05:03 | IA-64 | Sqlservr.exe | 2005.90.1534.0 | 72,244,000 | 22-Mar-2006 | 05:03 | IA-64 | Template_hauresourcedb.ldf | Not Applicable | 524,288 | 21-Mar-2006 | 21:44 | Not Applicable | Template_hauresourcedb.mdf | Not Applicable | 39,780,352 | 21-Mar-2006 | 21:44 | Not Applicable |
WORKAROUNDTo work around this problem, rewrite the query to use a format that resembles the following example query: SELECT *
FROM View1 V INNER JOIN Table3 T ON V.V1C1 <= T.T3C1
LEFT OUTER JOIN Table4 ON V.V1C1 = Table4.T4C1
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 7/26/2006 |
---|
Keywords: | kbfix kberrmsg kbBug kbQFE kbhotfixserver kbpubtypekc KB916795 kbAudDeveloper kbAudITPRO |
---|
|