FIX: Error message when you use a server-side cursor to run a large complex query in SQL Server 2005: "Error: 8623, Severity: 16, State: 1 The query processor ran out of internal resources" (917888)
The information in this article applies to:
- Microsoft SQL Server 2005 Standard Edition
- Microsoft SQL Server 2005 Standard X64 Edition
- SQL Server 2005 Standard Edition for Itanium-based Systems
- 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 Developer Edition
Bug #: 432869 (SQLBUDT) Bug #: 432872 (SQLBUDT) Bug #: 648 (SQL Hotfix) Bug #: 836 (SQL Hotfix) Bug #: 50000156 (SQL Hotfix)
NoticeMicrosoft 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.SUMMARYThis 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 you must make any registry changes
- The files that are contained in the hotfix
package
SYMPTOMSWhen you use a server-side cursor to run a large complex
query in Microsoft SQL Server 2005, you may receive an error message that
resembles the following: Error: 8623, Severity: 16,
State: 1 The query processor ran out of internal resources and could not
produce a query plan. This is a rare event and only expected for extremely
complex queries or queries that reference a very large number of tables or
partitions. Please simplify the query. If you believe you have received this
message in error, contact Customer Support Services for more
information. When this problem occurs, an execution plan is not
created, and the query does not run. 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, Microsoft recommends 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 phone 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. 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 informationThis 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.32-bit hotfix |
Osql.exe | 2005.90.1541.0 | 51,488 | 18-Apr-2006 | 16:06 | Not
Applicable | Replrec.dll | 2005.90.1541.0 | 781,088 | 18-Apr-2006 | 16:05 | Not
Applicable | Sbmsmdlocal.dll | 9.0.1541.0 | 15,599,904 | 18-Apr-2006 | 16:07 | Not
Applicable | Sbmsmdredir.dll | 9.0.1541.0 | 3,929,888 | 18-Apr-2006 | 16:07 | Not
Applicable | Sqlaccess.dll | 2005.90.1541.0 | 349,472 | 18-Apr-2006 | 16:04 | Not
Applicable | Sqldiag.exe | 2005.90.1541.0 | 960,288 | 18-Apr-2006 | 16:05 | Not
Applicable | Sqlservr.exe | 2005.90.1541.0 | 28,790,104 | 18-Apr-2006 | 16:07 | Not
Applicable |
64-bit hotfix |
Osql.exe | 2005.90.1541.0 | 83,744 | 18-Apr-2006 | 11:01 | Not
Applicable | Replrec.dll | 2005.90.1541.0 | 1,007,392 | 18-Apr-2006 | 11:02 | Not
Applicable | Sbmsmdlocal.dll | 9.0.1541.0 | 15,599,904 | 18-Apr-2006 | 16:07 | Not
Applicable | Sbmsmdredir.dll | 9.0.1541.0 | 3,929,888 | 18-Apr-2006 | 16:07 | Not
Applicable | Sqlaccess.dll | 2005.90.1541.0 | 356,640 | 18-Apr-2006 | 11:02 | Not
Applicable | Sqldiag.exe | 2005.90.1541.0 | 1,127,712 | 18-Apr-2006 | 11:02 | Not
Applicable | Sqlservr.exe | 2005.90.1541.0 | 39,500,064 | 18-Apr-2006 | 11:03 | Not
Applicable |
64-bit hotfix for Itanium processors |
Osql.exe | 2005.90.1541.0 | 123,168 | 18-Apr-2006 | 08:08 | Not
Applicable | Replrec.dll | 2005.90.1541.0 | 2,137,888 | 18-Apr-2006 | 08:09 | Not
Applicable | Sbmsmdlocal.dll | 9.0.1541.0 | 48,472,352 | 18-Apr-2006 | 08:10 | Not
Applicable | Sbmsmdredir.dll | 9.0.1541.0 | 6,079,264 | 18-Apr-2006 | 08:09 | Not
Applicable | Sqlaccess.dll | 2005.90.1541.0 | 351,520 | 18-Apr-2006 | 08:09 | Not
Applicable | Sqldiag.exe | 2005.90.1541.0 | 1,637,152 | 18-Apr-2006 | 08:09 | Not
Applicable | Sqlservr.exe | 2005.90.1541.0 | 72,166,688 | 18-Apr-2006 | 08:10 | Not
Applicable |
WORKAROUNDTo work around this problem, simplify the query, or do not
use a server-side cursor to run the query.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: | 9/11/2006 |
---|
Keywords: | kbBug kbfix kbtshoot kbHotfixServer kbQFE kbpubtypekc KB917888 kbAudITPRO kbAudDeveloper |
---|
|