FIX: Correlated Subquery and ISNULL May Cause Disconnect from Server

ID: Q194666


The information in this article applies to:
  • Microsoft SQL Server version 6.5

BUG #: 17765 (SQLBUG_65)

SYMPTOMS

A query containing a subquery, which itself contains a correlated subquery using ISNULL, may cause the process connected to SQL Server to disconnect. Under most situations a handled access violation (AV) stack trace will be recorded in the SQL Server error log concurrent with this event.


WORKAROUND

Many subqueries can be flattened to use a join, which would avoid the problem. Additionally, ISNULL can be moved to a prior query so that it can be removed from the correlated subquery.


STATUS

Microsoft has confirmed this to be a problem in SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 5a for Microsoft SQL Server version 6.5. For information about downloading and installing the latest SQL Server Service Pack, see http://support.microsoft.com/support/sql/.

For more information, contact your primary support provider.

Additional query words: sp sp5prodsql av exception subquery ISNULL

Keywords : SSrvProg SSrvTran_SQL kbbug6.50 kbfix6.50.SP5
Version : winnt:6.5
Platform : winnt
Issue type : kbbug


Last Reviewed: November 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.