BUG: Non-Indexed Joins May Skip Optimizer's Reformatting Step

Last reviewed: August 19, 1997
Article ID: Q172700
The information in this article applies to:
  • Microsoft SQL Server, version 6.5
BUG #: 16494 (6.5)
       17158 (6.5)

SYMPTOMS

You may experience impaired performance when you process queries involving joins on tables with no defined indexes. This problem has been identified on SQL Server 6.5 only with Service Pack 2 and Service Pack 3 (and intermediate builds between them). In one scenario, a query involving a non- indexed join took approximately 840 minutes to execute on SQL Server 6.5 Service Pack 2, but only one minute on the release version of SQL Server 6.5. You may experience the degraded performance whether you use an ad-hoc query or execute it within a stored procedure.

CAUSE

The Optimizer skips the Reformatting step for large tables with no indexes defined. Earlier versions of SQL Server benefit significantly with the Reformatting step included.

WORKAROUND

To work around this problem, define indexes on the tables.

STATUS

Microsoft has confirmed this to be a problem in Microsoft 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.

MORE INFORMATION

For more information, see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q110352
   TITLE     : INF: Optimizing Microsoft SQL Server Performance


Additional query words: golden sp sp2 sp3
Keywords : kbbug6.50 SSrvTran_SQL kbtool kbusage
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbworkaround


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: August 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.