FIX: Queries with TOP N PERCENT in Subquery May Fail with Error Message 8623

Article translations Article translations
Article ID: 274467 - View products that this article applies to.
This article was previously published under Q274467
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57941 (SQLBUG_70)
Expand all | Collapse all

SYMPTOMS

Queries that contain a TOP N PERCENT argument within a subquery may fail to run. For example, the following query:
SELECT * FROM employee
WHERE hire_date > ALL (SELECT TOP 7 PERCENT 1 FROM employee)
				
returns this error message:
Server: Msg 8623, Level 16, State 2, Line 1
Internal Query Processor Error: The query processor could not produce a query plan.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

Properties

Article ID: 274467 - Last Review: February 28, 2014 - Revision: 5.1
APPLIES TO
  • Microsoft SQL Server 7.0 Service Pack 2
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB274467

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