BUG: Queries Using Derived Tables or GROUP BY May Cause an AV

Last reviewed: February 13, 1998
Article ID: Q181048
The information in this article applies to:
  • Microsoft SQL Server, version 6.5
BUG #: 16168

SYMPTOMS

In rare cases, queries that require SQL Server to re-map columns to virtual tables may cause SQL Server to have a handled access violation (AV). This has only been observed when either of the following conditions us true:

  • Derived tables are used.

    -or-

  • A GROUP BY clause is used and the data being grouped comes from a view.

WORKAROUND

To work around this problem, do either of the following:

  • If the problem occurs with derived tables, change the query to avoid the use of a derived table. This may include creating a temporary table to represent the derived table and using it in your query instead.

    -or-

  • If the problem occurs with a GROUP BY clause, you must remove the GROUP BY and implement it in another way, possibly with the use of temporary tables.

STATUS

Microsoft has confirmed this to be a problem in SQL Server version 6.5. A supported fix is now available, but has not been fully regression-tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Technical Support for more information.

Keywords          : kbbug6.50 SSrvGen
Version           : WINNT:6.5
Platform          : winnt
Issue type        : kbbug
Solution Type     : kbfix


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 13, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.