FIX: A query may take longer to run in SQL Server 2005 SP1 than it takes to run in the original release version of SQL Server 2005 or in SQL Server 2000

Extended support for SQL Server 2005 ended on April 12, 2016

If you are still running SQL Server 2005, you will no longer receive security updates and technical support. We recommend upgrading to SQL Server 2014 and Azure SQL Database to achieve breakthrough performance, maintain security and compliance, and optimize your data platform infrastructure. Learn more about the options for upgrading from SQL Server 2005 to a supported version here.

This article has been archived. It is offered "as is" and will no longer be updated.
Bug #: 660 (SQL Hotfix)
Microsoft distributes Microsoft SQL Server 2005 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2005 fix release.
SUMMARY
This article describes the following about this hotfix release:
  • The issues that are fixed by this hotfix package
  • The prerequisites for applying the hotfix package
  • Whether you must restart the computer after you apply the hotfix package
  • Whether the hotfix package replaces any other hotfix package
  • Whether you must make any registry changes after you apply the hotfix package
  • The files that are contained in the hotfix package
SYMPTOMS
Consider the following scenario:
  • You try to run a query in Microsoft SQL Server 2005 Service Pack 1 (SP1).
  • The query contains a subquery.
  • The subquery contains many column joins.
In this scenario, the query may take longer to run than it takes to run in the original release version of SQL Server 2005 or in SQL Server 2000. For example, you may experience this problem when you run a query that resembles the following:
Select a from t1 where a=0 or a in (select b from t2 inner join t3 on b=c)
RESOLUTION

Service Pack information

To resolve this problem, obtain the latest service pack for SQL Server 2005.For more information, click the following article number to view the article in the Microsoft Knowledge Base:
913089 How to obtain the latest service pack for SQL Server 2005

Hotfix information

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. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

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, contact 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: 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.

Prerequisites

To apply this hotfix, you must have SQL Server 2005 Service Pack 1 installed.For more information about how to obtain SQL Server 2005 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:
913089 How to obtain the latest service pack for SQL Server 2005

Restart information

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

Registry information

You do not have change the registry.

File information

This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain all the files that you must have to fully update a product to the latest build.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
SQL Server 2005, x86 versions
File nameFile versionFile sizeDateTimePlatform
Autoadmin90.dll2005.90.2164.0899,36014-Jun-200620:07x86
Dta.exe9.0.2164.0117,53614-Jun-200619:53x86
Dts.dll2005.90.2164.01,099,04014-Jun-200619:58x86
Dtsinstall.exe9.0.2164.0494,36814-Jun-200619:57x86
Dtspipeline.dll2005.90.2164.0602,91214-Jun-200619:56x86
Dundaswebchart.dll9.0.2164.0752,41614-Jun-200620:02x86
Dundaswinchart.dll9.0.2164.0801,56814-Jun-200620:02x86
Microsoft.analysisservices.modeling.dll9.0.2164.0564,00014-Jun-200620:13x86
Microsoft.datatransformationservices.vsintegration.dll9.0.2164.0330,52814-Jun-200619:57x86
Microsoft.reportingservices.dataextensions.dll9.0.2164.0154,40014-Jun-200620:03x86
Microsoft.reportingservices.diagnostics.dll9.0.2164.0604,96014-Jun-200620:02x86
Microsoft.reportingservices.excelrendering.dll9.0.2164.0330,52814-Jun-200620:03x86
Microsoft.reportingservices.processingcore.dll9.0.2164.01,669,92014-Jun-200620:02x86
Microsoft.reportingservices.reportpreview.dll9.0.2164.0437,02414-Jun-200620:03x86
Microsoft.sqlserver.dtsruntimewrap.dll9.0.242.0166,68814-Jun-200619:47x86
Microsoft.sqlserver.maintenanceplantasks.dll9.0.2164.0256,80014-Jun-200619:51x86
Microsoft.sqlserver.maintenanceplantasksui.dll9.0.2164.0645,92014-Jun-200619:52x86
Microsoft.sqlserver.management.maintenanceplanwizard.dll9.0.2164.0555,80814-Jun-200619:52x86
Microsoft.sqlserver.management.ui.rsuserinterface.dll9.0.2164.01,223,45614-Jun-200620:04x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2164.075,55214-Jun-200620:05x86
Microsoft.sqlserver.olapenum.dll9.0.2164.052,00014-Jun-200619:48x86
Microsoft.sqlserver.sqlenum.dll9.0.2164.0908,06414-Jun-200619:48x86
Microsoft.visualstudio.vspsqlenum.dll9.0.2164.0875,29614-Jun-200619:48x86
Msadomdx.dll9.0.2164.0502,56014-Jun-200620:57x86
Msdtssrvr.exe9.0.2164.0203,55214-Jun-200619:59x86
Msgprox.dll2005.90.2164.0197,92014-Jun-200619:41x86
Msmdlocal.dll9.0.2164.015,661,85614-Jun-200620:56x86
Msmdsrv.exe9.0.2164.014,634,78414-Jun-200620:56x86
Msmgdsrv.dll9.0.2164.05,948,19214-Jun-200620:17x86
Nsservice.exe9.0.2164.019,23214-Jun-200619:32x86
Pfclnt90.dll2005.90.2164.01,186,08014-Jun-200619:54x86
Replprov.dll2005.90.2164.0547,61614-Jun-200619:42x86
Replrec.dll2005.90.2164.0782,11214-Jun-200619:38x86
Reportbuilder.exe9.0.2164.05,389,08814-Jun-200620:03x86
Reportingserviceslibrary.dll9.0.2164.01,030,94414-Jun-200620:03x86
Reportingservicesservice.exe9.0.2164.014,62414-Jun-200620:03x86
Reportingserviceswebserver.dll9.0.2164.01,325,85614-Jun-200620:03x86
Reportingserviceswebuserinterface.dll9.0.2164.01,239,84014-Jun-200620:03x86
Sqlaccess.dll2005.90.2164.0347,93614-Jun-200620:07x86
Sqlca.dll2005.90.2164.03,240,22414-Jun-200619:52x86
Sqlmanagerui.dll9.0.2164.06,077,21614-Jun-200619:52x86
Sqlncli.dll2005.90.2164.02,222,93614-Jun-200622:04x86
Sqlservr.exe2005.90.2164.028,950,87215-Jun-200602:42x86
Sqlsetup.exe2005.90.2164.02,088,73614-Jun-200619:52x86
Sqlspars.dll2005.90.2164.01,299,74414-Jun-200619:52x86
SQL Server 2005, x64 versions
File nameFile versionFile sizeDateTimePlatform
Dts.dll2005.90.2164.01,887,00814-Jun-200619:59x64
Dtspipeline.dll2005.90.2164.01,062,68814-Jun-200619:56x64
Dundaswebchart.dll9.0.2164.0752,41614-Jun-200619:35x86
Dundaswinchart.dll9.0.2164.0801,56814-Jun-200619:35x86
Microsoft.analysisservices.modeling.dll9.0.2164.0564,00014-Jun-200620:16x86
Microsoft.reportingservices.dataextensions.dll9.0.2164.0154,40014-Jun-200619:35x86
Microsoft.reportingservices.diagnostics.dll9.0.2164.0604,96014-Jun-200619:35x86
Microsoft.reportingservices.excelrendering.dll9.0.2164.0330,52814-Jun-200619:36x86
Microsoft.reportingservices.processingcore.dll9.0.2164.01,669,92014-Jun-200619:35x86
Microsoft.sqlserver.dtsruntimewrap.dll9.0.242.0166,68814-Jun-200619:44x64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2164.091,42414-Jun-200620:25x64
Microsoft.sqlserver.olapenum.dll9.0.2164.052,00014-Jun-200619:54x86
Microsoft.sqlserver.sqlenum.dll9.0.2164.0875,29614-Jun-200619:54x86
Microsoft.visualstudio.vspsqlenum.dll9.0.2164.0875,29614-Jun-200619:54x86
Msdtssrvr.exe9.0.2164.0199,45614-Jun-200619:58x64
Msgprox.dll2005.90.2164.0259,36014-Jun-200619:45x64
Msmdlocal.dll9.0.2164.030,228,25615-Jun-200603:45x64
Msmdsrv.exe9.0.2164.029,548,83215-Jun-200603:45x64
Msmgdsrv.dll9.0.2164.08,931,10415-Jun-200602:33x64
Nsservice.exe9.0.2164.019,23214-Jun-200619:35x86
Replprov.dll2005.90.2164.0745,24814-Jun-200619:45x64
Replrec.dll2005.90.2164.01,008,41614-Jun-200619:41x64
Reportingserviceslibrary.dll9.0.2164.01,030,94414-Jun-200619:36x86
Reportingservicesservice.exe9.0.2164.014,62414-Jun-200619:36x86
Reportingserviceswebserver.dll9.0.2164.01,325,85614-Jun-200619:36x86
Reportingserviceswebuserinterface.dll9.0.2164.01,239,84014-Jun-200619:36x86
Sqlaccess.dll2005.90.2164.0355,10414-Jun-200620:25x86
Sqlca.dll2005.90.2164.04,317,98414-Jun-200620:41x64
Sqlncli.dll2005.90.2164.02,854,74414-Jun-200622:07x64
Sqlservr.exe2005.90.2164.039,251,23215-Jun-200601:20x64
Sqlsetup.exe2005.90.2164.03,083,04014-Jun-200620:41x64
Sqlspars.dll2005.90.2164.01,755,42414-Jun-200620:40x64
SQL Server 2005, Itanium architecture version
File nameFile versionFile sizeDateTimePlatform
Dts.dll2005.90.2164.03,504,41615-Jun-200603:29IA-64
Dtspipeline.dll2005.90.2164.01,930,01615-Jun-200603:29IA-64
Dundaswebchart.dll9.0.2164.0752,41615-Jun-200603:29x86
Dundaswinchart.dll9.0.2164.0801,56815-Jun-200603:29x86
Microsoft.analysisservices.modeling.dll9.0.2164.0564,00015-Jun-200603:28x86
Microsoft.reportingservices.dataextensions.dll9.0.2164.0154,40015-Jun-200603:29x86
Microsoft.reportingservices.diagnostics.dll9.0.2164.0604,96015-Jun-200603:28x86
Microsoft.reportingservices.excelrendering.dll9.0.2164.0330,52815-Jun-200603:28x86
Microsoft.reportingservices.processingcore.dll9.0.2164.01,669,92015-Jun-200603:29x86
Microsoft.sqlserver.dtsruntimewrap.dll9.0.242.0166,68815-Jun-200603:29IA-64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2164.0163,10415-Jun-200603:29IA-64
Microsoft.sqlserver.olapenum.dll9.0.2164.052,00015-Jun-200603:28x86
Microsoft.sqlserver.sqlenum.dll9.0.2164.0875,29615-Jun-200603:29x86
Microsoft.visualstudio.vspsqlenum.dll9.0.2164.0875,29615-Jun-200603:29x86
Msdtssrvr.exe9.0.2164.0199,45615-Jun-200603:29IA-64
Msgprox.dll2005.90.2164.0542,49615-Jun-200603:28IA-64
Msmdlocal.dll9.0.2164.048,733,98415-Jun-200603:30IA-64
Msmdsrv.exe9.0.2164.047,685,40815-Jun-200603:30IA-64
Msmgdsrv.dll9.0.2164.012,870,43215-Jun-200603:30IA-64
Nsservice.exe9.0.2164.019,23215-Jun-200603:28x86
Replprov.dll2005.90.2164.01,617,18415-Jun-200603:29IA-64
Replrec.dll2005.90.2164.02,141,47215-Jun-200603:29IA-64
Reportingserviceslibrary.dll9.0.2164.01,030,94415-Jun-200603:29x86
Reportingservicesservice.exe9.0.2164.014,62415-Jun-200603:28x86
Reportingserviceswebserver.dll9.0.2164.01,325,85615-Jun-200603:29x86
Reportingserviceswebuserinterface.dll9.0.2164.01,239,84015-Jun-200603:29x86
Sqlaccess.dll2005.90.2164.0349,47215-Jun-200603:28x86
Sqlca.dll2005.90.2164.010,680,09615-Jun-200603:30IA-64
Sqlncli.dll2005.90.2164.05,396,31215-Jun-200603:29IA-64
Sqlservr.exe2005.90.2164.072,208,67215-Jun-200603:30IA-64
Sqlsetup.exe2005.90.2164.08,159,52015-Jun-200603:29IA-64
Sqlspars.dll2005.90.2164.04,816,67215-Jun-200603:29IA-64
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in SQL Server 2005 Service Pack 2.
MORE INFORMATION
To enable this hotfix, you must turn on trace flag 4103 after you apply this hotfix.

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Properties

Article ID: 919905 - Last Review: 01/17/2015 14:57:09 - Revision: 2.0

Microsoft SQL Server 2005 Developer Edition, Microsoft SQL Server 2005 Enterprise Edition, Microsoft SQL Server 2005 Enterprise Edition for Itanium-based Systems, Microsoft SQL Server 2005 Enterprise X64 Edition, Microsoft SQL Server 2005 Standard Edition, Microsoft SQL Server 2005 Standard X64 Edition

  • kbnosurvey kbarchive kbautohotfix kbsql2005engine kbhotfixserver kbqfe KB919905
Feedback