Help and Support
Hotfix Download Available

FIX: You may experience poor performance after you install SQL Server 2005 Service Pack 1

Article ID:932393
Last Review:November 20, 2007
Revision:1.3
Bug #: SQL Hotfix 50000820
Notice
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.
On This Page

SUMMARY

This article describes the following about this hotfix release:
The issues that are fixed by this hotfix package
The prerequisites for installing the hotfix package
Whether you must restart the computer after you install the hotfix package
Whether the hotfix package is replaced by any other hotfix package
Whether you must make any registry changes
The files that are contained in the hotfix package

Back to the top

SYMPTOMS

In Microsoft SQL Server 2005, you may experience poor performance after you install SQL Server 2005 Service Pack 1 (SP1). This issue occurs when you run a query that has a CASE function in the WHERE clause. For example, you run a query that resembles the following:
SELECT * FROM
(
SELECT CASE 
                  WHEN col1 IS NULL THEN  3
                  WHEN col1=0 THEN 3
                  WHEN col1=2 THEN 0
                  ELSE 3
                  END Col2
FROM T1
WHERE col3 =N'') T2
WHERE col4 in(0,1,2)

Back to the top

CAUSE

A code change in SQL Server 2005 SP1 causes an incorrect cardinality estimate for the CASE function. This behavior causes an inefficient execution plan.

Back to the top

RESOLUTION

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, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:
http://go.microsoft.com/?linkid=6294451 (http://go.microsoft.com/?linkid=6294451)
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. To create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" section and the online request forms display 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 (http://support.microsoft.com/kb/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.

File information

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 hotfix, 32-bit versions
File nameFile versionFile sizeDateTimePlatform
Bcp.exe2005.90.2223.069,48820-Feb-200711:46x86
Databasemailengine.dll9.0.2223.075,12020-Feb-200711:46x86
Logread.exe2005.90.2223.0400,75220-Feb-200711:47x86
Microsoft.analysisservices.adomdclient.dll9.0.2223.0546,16020-Feb-200711:47x86
Microsoft.analysisservices.deploymentengine.dll9.0.2223.0140,65620-Feb-200711:47x86
Microsoft.analysisservices.dll9.0.2223.01,217,90420-Feb-200711:47x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2223.078,19220-Feb-200711:47x86
Microsoft.sqlserver.sqlenum.dll9.0.2223.0910,70420-Feb-200711:47x86
Msasxpress.dll9.0.2223.024,94420-Feb-200711:47x86
Msgprox.dll2005.90.2223.0200,56020-Feb-200711:47x86
Msmdlocal.dll9.0.2223.015,646,06420-Feb-200711:47x86
Msmdredir.dll9.0.2223.03,993,96820-Feb-200711:47x86
Mssqlsystemresource.ldfNot applicable524,28819-Feb-200721:32Not applicable
Mssqlsystemresource.mdfNot applicable40,108,03219-Feb-200721:32Not applicable
Qrdrsvc.exe2005.90.2223.0369,52020-Feb-200711:47x86
Rdistcom.dll2005.90.2223.0643,44020-Feb-200711:47x86
Repldp.dll2005.90.2223.0187,24820-Feb-200711:47x86
Replmerg.exe2005.90.2223.0320,88020-Feb-200711:47x86
Replprov.dll2005.90.2223.0550,25620-Feb-200711:47x86
Replrec.dll2005.90.2223.0784,75220-Feb-200711:47x86
Replsub.dll2005.90.2223.0407,40820-Feb-200711:47x86
Spresolv.dll2005.90.2223.0177,00820-Feb-200711:47x86
Sqlaccess.dll2005.90.2223.0350,57620-Feb-200711:47x86
Sqlagent90.exe2005.90.2223.0321,39220-Feb-200711:47x86
Sqlservr.exe2005.90.2223.028,979,11220-Feb-200711:47x86
Sysdbupg.sqlNot applicable218,48629-Dec-200613:53Not applicable
Xmlsub.dll2005.90.2223.0195,44020-Feb-200711:47x86
Xpstar90.dll2005.90.2223.0295,28020-Feb-200711:47x86
Xpstar90.rll2005.90.2223.0155,50420-Feb-200711:47x86
SQL Server 2005 hotfix, x64 versions
File nameFile versionFile sizeDateTimePlatform
Bcp.exe2005.90.2223.088,94419-Feb-200723:50x64
Databasemailengine.dll9.0.2223.075,12019-Feb-200723:50x86
Logread.exe2005.90.2223.0525,16819-Feb-200723:51x64
Microsoft.analysisservices.adomdclient.dll9.0.2223.0546,16019-Feb-200723:51x86
Microsoft.analysisservices.adomdclient.dll9.0.2223.0546,16020-Feb-200711:47x86
Microsoft.analysisservices.deploymentengine.dll9.0.2223.0140,65620-Feb-200711:47x86
Microsoft.analysisservices.dll9.0.2223.01,217,90420-Feb-200711:47x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2223.094,06419-Feb-200723:51x64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2223.078,19220-Feb-200711:47x86
Microsoft.sqlserver.sqlenum.dll9.0.2223.0877,93619-Feb-200723:51x86
Msasxpress.dll9.0.2223.030,06419-Feb-200723:51x64
Msasxpress.dll9.0.2223.024,94420-Feb-200711:47x86
Msgprox.dll2005.90.2223.0262,00019-Feb-200723:51x64
Msmdlocal.dll9.0.2223.015,646,06420-Feb-200711:47x86
Msmdredir.dll9.0.2223.03,993,96820-Feb-200711:47x86
Mssqlsystemresource.ldfNot applicable524,28819-Feb-200721:32Not applicable
Mssqlsystemresource.mdfNot applicable40,108,03219-Feb-200721:32Not applicable
Qrdrsvc.exe2005.90.2223.0434,03219-Feb-200723:51x64
Rdistcom.dll2005.90.2223.0836,46419-Feb-200723:51x64
Repldp.dll2005.90.2223.0237,93619-Feb-200723:51x64
Repldp.dll2005.90.2223.0187,24820-Feb-200711:47x86
Replmerg.exe2005.90.2223.0417,64819-Feb-200723:51x64
Replprov.dll2005.90.2223.0747,88819-Feb-200723:51x64
Replrec.dll2005.90.2223.01,011,05619-Feb-200723:51x64
Replsub.dll2005.90.2223.0528,24019-Feb-200723:51x64
Spresolv.dll2005.90.2223.0225,64819-Feb-200723:51x64
Sqlaccess.dll2005.90.2223.0357,74419-Feb-200723:51x86
Sqlagent90.exe2005.90.2223.0392,56019-Feb-200723:51x64
Sqlservr.exe2005.90.2223.039,268,20819-Feb-200723:51x64
Sysdbupg.sqlNot applicable218,48629-Dec-200613:53Not applicable
Xmlsub.dll2005.90.2223.0319,85619-Feb-200723:51x64
Xpstar90.dll2005.90.2223.0543,60019-Feb-200723:51x64
Xpstar90.rll2005.90.2223.0156,01619-Feb-200723:51x64
SQL Server 2005 hotfix, Itanium architecture versions
File nameFile versionFile sizeDateTimePlatform
Bcp.exe2005.90.2223.0157,55220-Feb-200701:55IA-64
Databasemailengine.dll9.0.2223.075,12020-Feb-200701:55x86
Logread.exe2005.90.2223.01,098,09620-Feb-200701:56IA-64
Microsoft.analysisservices.adomdclient.dll9.0.2223.0546,16020-Feb-200711:47x86
Microsoft.analysisservices.adomdclient.dll9.0.2223.0546,16020-Feb-200701:56x86
Microsoft.analysisservices.deploymentengine.dll9.0.2223.0140,65620-Feb-200711:47x86
Microsoft.analysisservices.dll9.0.2223.01,217,90420-Feb-200711:47x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2223.078,19220-Feb-200711:47x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2223.0165,74420-Feb-200701:56IA-64
Microsoft.sqlserver.sqlenum.dll9.0.2223.0877,93620-Feb-200701:56x86
Msasxpress.dll9.0.2223.024,94420-Feb-200711:47x86
Msasxpress.dll9.0.2223.057,71220-Feb-200701:56IA-64
Msgprox.dll2005.90.2223.0545,13620-Feb-200701:56IA-64
Msmdlocal.dll9.0.2223.048,718,70420-Feb-200701:56IA-64
Msmdredir.dll9.0.2223.06,249,32820-Feb-200701:56IA-64
Mssqlsystemresource.ldfNot applicable524,28819-Feb-200721:32Not applicable
Mssqlsystemresource.mdfNot applicable40,108,03219-Feb-200721:32Not applicable
Qrdrsvc.exe2005.90.2223.0943,98420-Feb-200701:56IA-64
Rdistcom.dll2005.90.2223.01,884,01620-Feb-200701:56IA-64
Repldp.dll2005.90.2223.0187,24820-Feb-200711:47x86
Repldp.dll2005.90.2223.0511,34420-Feb-200701:56IA-64
Replmerg.exe2005.90.2223.0957,29620-Feb-200701:56IA-64
Replprov.dll2005.90.2223.01,619,82420-Feb-200701:56IA-64
Replrec.dll2005.90.2223.02,144,11220-Feb-200701:56IA-64
Replsub.dll2005.90.2223.01,159,53620-Feb-200701:56IA-64
Spresolv.dll2005.90.2223.0498,03220-Feb-200701:56IA-64
Sqlaccess.dll2005.90.2223.0352,11220-Feb-200701:56x86
Sqlagent90.exe2005.90.2223.01,143,66420-Feb-200701:56IA-64
Sqlservr.exe2005.90.2223.072,190,83220-Feb-200701:56IA-64
Sysdbupg.sqlNot applicable218,48629-Dec-200613:53Not applicable
Xmlsub.dll2005.90.2223.0593,26420-Feb-200701:56IA-64
Xpstar90.dll2005.90.2223.0953,71220-Feb-200701:56IA-64
Xpstar90.rll2005.90.2223.0154,99220-Feb-200701:56IA-64

Back to the top

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Back to the top

MORE INFORMATION

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 (http://support.microsoft.com/kb/824684/) Description of the standard terminology that is used to describe Microsoft software updates

Back to the top


APPLIES TO
Microsoft SQL Server 2005 Standard Edition
Microsoft SQL Server 2005 Standard X64 Edition
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 for Itanium-based Systems Community Technology Preview

Back to the top

Keywords: 
kbautohotfix kbsql2005tsql kbsql2005engine kbfix kbhotfixserver kbqfe kbpubtypekc KB932393

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.