FIX: Error message when you run an application against SQL Server 2005 that uses many unique user logins or performs many user login impersonations: "insufficient system memory to run this query"

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 #: 1115 (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 this hotfix package
  • Whether you must restart the computer after you apply this hotfix package
  • Whether this hotfix package is replaced by any other hotfix package
  • Whether you must make any registry changes after you apply this hotfix package
  • The files that are contained in this hotfix package
SYMPTOMS
When you run an application against SQL Server 2005, you may receive an error message that resembles the following:
2006-05-31 05:22:14.31 spid51 Error: 701, Severity: 17, State: 193.
2006-05-31 05:22:14.31 spid51 There is insufficient system memory to run this query.
This problem may occur if the application uses many unique user logins or performs many user login impersonations.

When this problem occurs, you may also see a high allocation value for the SinglePage Allocator counter of the USERSTORE_TOKENPERM command statements in the DBCC MemoryStatus statement. The following message is an example that shows a high allocation value in the USERSTORE_TOKENPERM command statement.
USERSTORE_TOKENPERM (Total)
VM Reserved = 0 KB
VM Committed = 0 KB
AWE Allocated = 0 KB
SM Reserved = 0 KB
SM Committed = 0 KB
SinglePage Allocator = 1414456 KB.
MultiPage Allocator = 0 KB
Note This problem may occur when you are using any edition of SQL Server 2005. However, this problem is more likely to occur when you are using Microsoft SQL Server 2005 Express Edition.
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, 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

  • Microsoft SQL Server 2005 Service Pack 1 (SP1)
    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.

Registry information

You do not have to change the registry after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

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 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
File nameFile versionFile sizeDateTimePlatform
Logread.exe2005.90.2181.0398,11215-Aug-200608:28x86
Microsoft.analysisservices.adomdclient.dll9.0.2181.0543,52015-Aug-200608:28x86
Microsoft.analysisservices.deploymentengine.dll9.0.2181.0138,01615-Aug-200608:26x86
Microsoft.analysisservices.dll9.0.2181.01,215,26415-Aug-200608:26x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2181.075,55215-Aug-200608:25x86
Microsoft.sqlserver.sqlenum.dll9.0.2181.0908,06415-Aug-200608:26x86
Msgprox.dll2005.90.2181.0197,92015-Aug-200608:28x86
Msmdlocal.dll9.0.2181.015,703,84015-Aug-200608:27x86
Msmdredir.dll9.0.2181.03,968,80015-Aug-200608:27x86
Mssqlsystemresource.ldfNot Applicable524,28814-Aug-200622:49Not Applicable
Mssqlsystemresource.mdfNot Applicable39,911,42414-Aug-200622:49Not Applicable
Replprov.dll2005.90.2181.0547,61615-Aug-200608:29x86
Replrec.dll2005.90.2181.0782,11215-Aug-200608:26x86
Sqlaccess.dll2005.90.2181.0347,93615-Aug-200608:28x86
Sqlagent90.exe2005.90.2181.0319,26415-Aug-200608:27x86
Sqlservr.exe2005.90.2181.028,951,38415-Aug-200608:27x86
Sysdbupg.sqlNot Applicable192,34619-Jul-200617:02Not Applicable
Xpstar90.dll2005.90.2181.0292,64015-Aug-200608:31x86
Xpstar90.rll2005.90.2181.0152,86415-Aug-200608:27x86
SQL Server 2005 hotfix, 64-bit
File nameFile versionFile sizeDateTimePlatform
Logread.exe2005.90.2181.0522,52815-Aug-200608:20x64
Microsoft.analysisservices.adomdclient.dll9.0.2181.0543,52015-Aug-200608:20x86
Microsoft.analysisservices.adomdclient.dll9.0.2181.0543,52015-Aug-200608:28x86
Microsoft.analysisservices.deploymentengine.dll9.0.2181.0138,01615-Aug-200608:26x86
Microsoft.analysisservices.dll9.0.2181.01,215,26415-Aug-200608:26x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2181.091,42415-Aug-200608:19x64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2181.075,55215-Aug-200608:25x86
Microsoft.sqlserver.sqlenum.dll9.0.2181.0875,29615-Aug-200608:21x86
Msgprox.dll2005.90.2181.0259,36015-Aug-200608:20x64
Msmdlocal.dll9.0.2181.015,703,84015-Aug-200608:27x86
Msmdredir.dll9.0.2181.03,968,80015-Aug-200608:27x86
Mssqlsystemresource.ldfNot Applicable524,28814-Aug-200622:49Not Applicable
Mssqlsystemresource.mdfNot Applicable39,911,42414-Aug-200622:49Not Applicable
Replprov.dll2005.90.2181.0745,24815-Aug-200608:21x64
Replrec.dll2005.90.2181.01,008,41615-Aug-200608:19x64
Sqlaccess.dll2005.90.2181.0355,10415-Aug-200608:20x86
Sqlagent90.exe2005.90.2181.0390,94415-Aug-200608:20x64
Sqlservr.exe2005.90.2181.039,327,52015-Aug-200608:20x64
Sysdbupg.sqlNot Applicable192,34619-Jul-200617:02Not Applicable
Xpstar90.dll2005.90.2181.0540,44815-Aug-200608:20x64
Xpstar90.rll2005.90.2181.0153,37615-Aug-200608:19x64
SQL Server 2005 hotfix, 64-bit for Itanium processors
File nameFile versionFile sizeDateTimePlatform
Logread.exe2005.90.2181.01,095,45615-Aug-200608:20ia64
Microsoft.analysisservices.adomdclient.dll9.0.2181.0543,52015-Aug-200608:19x86
Microsoft.analysisservices.adomdclient.dll9.0.2181.0543,52015-Aug-200608:28x86
Microsoft.analysisservices.deploymentengine.dll9.0.2181.0138,01615-Aug-200608:26x86
Microsoft.analysisservices.dll9.0.2181.01,215,26415-Aug-200608:26x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2181.0163,10415-Aug-200608:18ia64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2181.075,55215-Aug-200608:25x86
Microsoft.sqlserver.sqlenum.dll9.0.2181.0875,29615-Aug-200608:20x86
Msgprox.dll2005.90.2181.0542,49615-Aug-200608:19ia64
Msmdlocal.dll9.0.2181.048,837,40815-Aug-200608:21ia64
Msmdredir.dll9.0.2181.06,155,04015-Aug-200608:21ia64
Mssqlsystemresource.ldfNot Applicable524,28814-Aug-200622:49Not Applicable
Mssqlsystemresource.mdfNot Applicable39,911,42414-Aug-200622:49Not Applicable
Replprov.dll2005.90.2181.01,617,18415-Aug-200608:21ia64
Replrec.dll2005.90.2181.02,141,47215-Aug-200608:21ia64
Sqlaccess.dll2005.90.2181.0349,47215-Aug-200608:19x86
Sqlagent90.exe2005.90.2181.01,143,58415-Aug-200608:20ia64
Sqlservr.exe2005.90.2181.072,196,89615-Aug-200608:21ia64
Sysdbupg.sqlNot Applicable192,34619-Jul-200617:02Not Applicable
Xpstar90.dll2005.90.2181.0950,56015-Aug-200608:22ia64
Xpstar90.rll2005.90.2181.0152,35215-Aug-200608:18ia64
WORKAROUND
To work around this problem, stop and then restart SQL Server 2005.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
MORE INFORMATION
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: 923624 - Last Review: 01/17/2015 15:49:14 - Revision: 2.0

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

  • kbnosurvey kbarchive kbautohotfix kbbug kbfix kbtshoot kbqfe KB923624
Feedback