Knowledge Base

BUG: Correlated Subquery Using EXISTS and UNION Can Cause an Access Violation

Article ID: 184495

Article Last Modified on 10/3/2003


APPLIES TO


This article was previously published under Q184495

SYMPTOMS

A correlated subquery that uses the EXISTS and UNION clauses may fail with an access violation (AV).

WORKAROUND

To work around this problem, restructure the query so that the EXISTS and the UNION clause is avoided. You may want to explore the use of joins or multiple queries.

STATUS

Microsoft has confirmed this to be a problem in SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: join crash gpf gp fault

Keywords: kbbug kbpending KB184495