Microsoft KB Archive/232707

= FIX: Query with Complex View Hierarchy May Be Slow to Compile =

Article ID: 232707

Article Last Modified on 10/5/2005

-

APPLIES TO


 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q232707



BUG #: 55348 (SQLBUG_70)



SYMPTOMS
A query against a complex hierarchy of views that includes an IN clause containing a subquery may be slower to compile in SQL Server 7.0 than it was in SQL Server 6.5.



RESOLUTION
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next SQL Server service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:   Version         File name     Platform --

7.00.0662     Sqlservr.exe   Intel 7.00.0662      Impprov.dll   Intel 7.00.0662     Sqlservr.exe   Alpha 7.00.0662      Impprov.dll   Alpha

NOTE: Due to file dependencies, the most recent hotfix or feature that contains the above files may also contain additional files.



WORKAROUND
To work around this problem, avoid using IN clauses that contain a subquery within any of the views in the hierarchy.



STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0.

Keywords: kbbug kbfix kbqfe KB232707

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.