FIX: When you run ad-hoc queries in Microsoft SQL Server 2000, ad-hoc query processing performance degradation may occur

This article has been archived. It is offered "as is" and will no longer be updated.
Bug #: 472458 (SQL Server 8.0)


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 your 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
INTRODUCTION

Issues that are fixed by this hotfix package

The following issue is fixed in this Microsoft SQL Server 2000 hotfix package:
  • When you run ad-hoc queries in Microsoft SQL Server 2000, ad-hoc query processing performance degradation occurs. When the performance degradation occurs, you may see that there are many system process IDs (SPID) in the sysprocesses table. Additionally, the lastwaittype column in the sysprocesses table has a CMEMTHREAD value.

    Note This problem is more prevalent on computers that are running Microsoft SQL Server 2000 64-bit than on computers that are running Microsoft SQL Server 2000 32-bit. The problem occurs because of the larger buffer pool sizes available to the 64-bit architecture. To date, this problem has occurred on computers that have a procedure cache that is larger than 16 GB.

For a list of previous hotfixes, see the "Microsoft SQL Server 2000 Post-Service Pack 3 or Microsoft SQL Server 2000 Post-Service Pack 3a hotfixes" section in the following Microsoft Knowledge Base article:
290211 How to obtain the latest SQL Server 2000 service pack
back to the top
Cause
This problem occurs when one of the following conditions is true:
  • A large percentage of the workload is submitted without using defined parameters from a front end application.
  • The procedure cache has grown very large. When the procedure cache grows very large, the memory allocation for new queries may become inefficient.
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.

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

back to the top

Prerequisites

  • Microsoft SQL Server 2000 Service Pack 3 (SP3) or Microsoft SQL Server 2000 Service Pack 3a (SP3a)
For additional information about how to obtain SQL Server 2000 Service Pack 3, click the following article number to view the article in the Microsoft Knowledge Base:
290211 How to obtain the latest SQL Server 2000 service pack
For additional information about the SQL Server 2000 hotfix installers, click one of the following article numbers to view the article in the Microsoft Knowledge Base:
842960 Description of the 32-bit SQL Server 7.0 and SQL Server 2000 hotfix installer
872912 Description of the 64-bit SQL Server 2000 hotfix installer
back to the top

Restart information

You must restart your instance of SQL Server 2000 after you apply this hotfix.

back to the top

Registry information

You do not have to make changes to the registry.

back to the top

Hotfix 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) 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 tool in Control Panel.

SQL Server 2000 32-bit versions

Date         Time   Version            Size    File name----------------------------------------------------------------------15-Sep-2004  02:40  2000.80.977.0     664,128  Autoplt.dll      15-Sep-2004  02:40  2000.80.977.0      78,400  Console.exe      15-Sep-2004  02:40  2000.80.977.0     332,352  Ctasksui.dll     15-Sep-2004  02:40  2000.80.977.0     315,968  Custtask.dll     15-Sep-2004  02:40  2000.80.977.0      33,340  Dbmslpcn.dll     08-Apr-2004  21:42                    786,432  Distmdl.ldf08-Apr-2004  21:42                  2,359,296  Distmdl.mdf30-Sep-2003  22:55                        180  Drop_repl_hotfix.sql15-Sep-2004  02:40  2000.80.977.0   1,905,216  Dtspkg.dll       15-Sep-2004  02:40  2000.80.977.0     528,960  Dtspump.dll      15-Sep-2004  02:40  2000.80.977.0   1,557,052  Dtsui.dll        15-Sep-2004  02:40  2000.80.977.0     639,552  Dtswiz.dll       30-Sep-2003  22:55                    747,927  Instdist.sql30-Sep-2003  22:55                      1,581  Inst_repl_hotfix.sql15-Sep-2004  02:40  2000.80.977.0     352,828  Isqlw.exe        15-Sep-2004  02:40  2000.80.977.0      82,492  Itwiz.exe        15-Sep-2004  02:40  2000.80.977.0      90,692  Msgprox.dll      19-May-2004  23:43  8.11.40209.0      209,408  Mssdi98.dll      15-Sep-2004  02:40  2000.80.977.0      62,024  Odsole70.dll     15-Sep-2004  02:41  2000.80.977.0      25,144  Opends60.dll     15-Sep-2004  02:40  2000.80.977.0      57,904  Osql.exe         15-Sep-2004  02:40  2000.80.977.0     279,104  Pfutil80.dll     30-Sep-2003  22:48                    550,780  Procsyst.sql08-Apr-2004  21:42                     12,305  Qfe469315.sql08-Apr-2004  21:42                     19,195  Qfe469571.sql27-Aug-2004  00:13                      5,157  Qfe472197.sql15-Sep-2004  02:40  2000.80.977.0     143,940  Qrdrsvc.exe      13-Sep-2004  22:09                  1,105,167  Replmerg.sql15-Sep-2004  02:40  2000.80.977.0     221,768  Replprov.dll     15-Sep-2004  02:40  2000.80.977.0     307,784  Replrec.dll      13-Sep-2004  18:16  2000.80.977.0     159,813  Replres.rll27-Aug-2004  00:13                  1,086,925  Replsys.sql30-Sep-2003  22:55                    986,603  Repltran.sql15-Sep-2004  02:40  2000.80.977.0     287,304  Rinitcom.dll     15-Sep-2004  02:40  2000.80.977.0      78,416  Sdiclnt.dll      15-Sep-2004  02:41  2000.80.977.0      66,112  Semmap.dll       15-Sep-2004  02:41  2000.80.977.0      57,916  Semnt.dll        15-Sep-2004  02:41  2000.80.977.0     492,096  Semobj.dll       13-Sep-2004  18:47  2000.80.977.0     172,032  Semobj.rll15-Sep-2004  02:40  2000.80.977.0      53,832  Snapshot.exe     30-Sep-2003  22:48                    117,834  Sp3_serv_uni.sql15-Sep-2004  02:40  2000.80.977.0      28,672  Sqlagent.dll     15-Sep-2004  02:40  2000.80.977.0     311,872  Sqlagent.exe     15-Sep-2004  02:40  2000.80.977.0     168,001  Sqlakw32.dll     15-Sep-2004  02:41  2000.80.977.0      33,344  Sqlctr80.dll     15-Sep-2004  02:41  2000.80.977.0   4,215,360  Sqldmo.dll       15-Sep-2004  02:40                     25,172  Sqldumper.exe    13-Sep-2004  18:09  2000.80.977.0      28,672  Sqlevn70.rll15-Sep-2004  02:40  2000.80.977.0     156,224  Sqlmaint.exe     15-Sep-2004  02:41  2000.80.977.0     180,792  Sqlmap70.dll     15-Sep-2004  02:41  2000.80.977.0     188,992  Sqlmmc.dll       13-Sep-2004  18:51  2000.80.977.0     479,232  Sqlmmc.rll15-Sep-2004  02:41  2000.80.977.0     401,984  Sqlqry.dll       15-Sep-2004  02:41  2000.80.977.0      57,920  Sqlrepss.dll     15-Sep-2004  02:41  2000.80.977.0   7,708,753  Sqlservr.exe     15-Sep-2004  02:41  2000.80.977.0     590,396  Sqlsort.dll      15-Sep-2004  02:41  2000.80.977.0      45,644  Sqlvdi.dll       15-Sep-2004  02:41  2000.80.977.0     106,588  Sqsrvres.dll     15-Sep-2004  02:41  2000.80.977.0      33,340  Ssmsgnet.dll     15-Sep-2004  02:41  2000.80.977.0      33,340  Ssmslpcn.dll     15-Sep-2004  02:41  2000.80.977.0      33,340  Ssmsqlgc.dll     15-Sep-2004  02:41  2000.80.977.0      82,492  Ssnetlib.dll     15-Sep-2004  02:41  2000.80.977.0      25,148  Ssnmpn70.dll     15-Sep-2004  02:41  2000.80.977.0     123,456  Stardds.dll      15-Sep-2004  02:41  2000.80.977.0     158,240  Svrnetcn.dll     15-Sep-2004  02:40  2000.80.977.0      76,416  Svrnetcn.exe     15-Sep-2004  02:41  2000.80.977.0      49,228  Ums.dll          15-Sep-2004  02:41  2000.80.977.0      74,304  Xplog70.dll      15-Sep-2004  02:41  2000.80.977.0      98,872  Xpweb70.dll      

SQL Server 2000 64-bit version

Date         Time   Version            Size    File name        Platform------------------------------------------------------------------------16-Sep-2004  04:28  2000.80.977.0      56,832  Dbmslpcn.dll     IA-6430-Sep-2003  22:55                        180  Drop_repl_hotfix.sql16-Sep-2004  04:27  2000.80.977.0     528,960  Dtspump.dll      x8630-Sep-2003  22:55                    747,927  Instdist.sql30-Sep-2003  22:55                      1,581  Inst_repl_hotfix.sql16-Sep-2004  04:28  2000.80.977.0     185,856  Msgprox.dll      IA-6419-May-2004  23:43  8.11.40517.0      722,944  Mssdi98.dll      IA-6416-Sep-2004  04:28  2000.80.977.0     151,040  Odsole70.dll     IA-6416-Sep-2004  04:29  2000.80.977.0      27,136  Opends60.dll     IA-6416-Sep-2004  04:28  2000.80.977.0     148,992  Osql.exe         IA-6430-Sep-2003  22:48                    550,780  Procsyst.sql08-Apr-2004  21:42                     12,305  Qfe469315.sql08-Apr-2004  21:42                     19,195  Qfe469571.sql27-Aug-2004  00:13                      5,157  Qfe472197.sql16-Sep-2004  04:28  2000.80.977.0     353,280  Qrdrsvc.exe      IA-6413-Sep-2004  22:09                  1,105,167  Replmerg.sql16-Sep-2004  04:28  2000.80.977.0     534,528  Replprov.dll     IA-6416-Sep-2004  04:28  2000.80.977.0     769,024  Replrec.dll      IA-6413-Sep-2004  22:12  2000.80.977.0     146,432  Replres.rll27-Aug-2004  00:13                  1,086,925  Replsys.sql30-Sep-2003  22:55                    986,603  Repltran.sql16-Sep-2004  04:28  2000.80.977.0     650,240  Rinitcom.dll     IA-6416-Sep-2004  04:28  2000.80.977.0     160,768  Semmap.dll       IA-6416-Sep-2004  04:28  2000.80.977.0     132,608  Semnt.dll        IA-6416-Sep-2004  04:28  2000.80.977.0      88,576  Snapshot.exe     IA-6430-Sep-2003  22:48                    117,834  Sp3_serv_uni.sql16-Sep-2004  04:27  2000.80.977.0      10,240  Sqlagent.dll     IA-6416-Sep-2004  04:28  2000.80.977.0   1,055,232  Sqlagent.exe     IA-6416-Sep-2004  04:28  2000.80.977.0      90,112  Sqlboot.dll      IA-6416-Sep-2004  04:28  2000.80.977.0      32,256  Sqlctr80.dll     IA-6416-Sep-2004  04:28  2000.80.977.0  13,845,504  Sqldmo.dll       IA-6416-Sep-2004  04:28                     39,936  Sqldumper.exe    IA-6413-Sep-2004  21:54  2000.80.977.0      19,968  Sqlevn70.rll16-Sep-2004  04:28  2000.80.977.0     493,568  Sqlmaint.exe     IA-6416-Sep-2004  04:28  2000.80.977.0      23,040  Sqlmap70.dll     IA-6416-Sep-2004  04:28  2000.80.977.0     152,064  Sqlrepss.dll     IA-6416-Sep-2004  04:29  2000.80.977.0  25,211,904  Sqlservr.exe     IA-6416-Sep-2004  04:28  2000.80.977.0     616,960  Sqlsort.dll      IA-6416-Sep-2004  04:28  2000.80.977.0     120,320  Sqlvdi.dll       IA-6416-Sep-2004  04:28  2000.80.977.0     227,328  Sqsrvres.dll     IA-6416-Sep-2004  04:28  2000.80.977.0      53,760  Ssmslpcn.dll     IA-6416-Sep-2004  04:28  2000.80.977.0      59,904  Ssmsqlgc.dll     IA-6416-Sep-2004  04:28  2000.80.977.0     255,488  Ssnetlib.dll     IA-6416-Sep-2004  04:28  2000.80.977.0      20,992  Ssnmpn70.dll     IA-6416-Sep-2004  04:28  2000.80.977.0     430,080  Svrnetcn.dll     IA-6416-Sep-2004  04:28  2000.80.977.0     185,856  Svrnetcn.exe     IA-6416-Sep-2004  04:28  2000.80.977.0     183,296  Xplog70.dll      IA-6416-Sep-2004  04:28  2000.80.977.0     187,392  Xpweb70.dll      IA-64
Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.


back to the top
Status
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

back to the top
More information
The dynamic memory management architecture in SQL Server lets the data pages and the procedure cache share the same buffer pool. Typically, this design works fine because the Lazywriter process naturally ages out buffers in the buffer pool that are not being reused frequently. However, with a high rate of incoming ad-hoc queries, it is possible for the procedure cache to grow very large relative to the data cache. The large procedure cache causes the performance problems on a computer that is running Microsoft SQL Server 2000 64-bit that were mentioned earlier.

The hotfix discussed in this article improves the efficiency of SQL Server's internal memory allocation process when the procedure cache grows very large.

For additional information about the lastwaittype field in the sysprocesses table, click the following article number to view the article in the Microsoft Knowledge Base:
822101 The waittype and lastwaittype fields in the sysprocesses table
For additional information about the naming schema for Microsoft SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:
822499 New naming schema for Microsoft SQL Server software update packages
For additional information about the terminology that Microsoft uses when correcting software after it is released, click the following article number to view the article in the Microsoft Knowledge Base:
824684Description of the standard terminology that is used to describe Microsoft software updates
back to the top
Properties

Article ID: 884850 - Last Review: 01/17/2015 08:57:30 - Revision: 2.0

  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 2000 64-bit Edition
  • kbnosurvey kbarchive kbautohotfix kbsqlserv2000presp4fix kbbug kbfix kbhotfixserver kbqfe KB884850
Feedback