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

Article translations Article translations
Article ID: 232707 - View products that this article applies to.
This article was previously published under Q232707
BUG #: 55348 (SQLBUG_70)
Expand all | Collapse all

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 hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language. 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.

Properties

Article ID: 232707 - Last Review: October 5, 2005 - Revision: 1.3
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbautohotfix kbhotfixserver kbbug kbfix kbqfe KB232707

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com