FIX: Error message when you use transactional replication to replicate the execution of stored procedures to subscribers in SQL Server 2005: "Insufficient memory to run query"

Article translations Article translations
Article ID: 933499 - View products that this article applies to.
Bug #: 50000921 (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.
Expand all | Collapse all

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 applying the hotfix package
  • Information about whether you must restart the computer after you apply the hotfix package
  • Information about whether the hotfix package is replaced by any other hotfix package
  • Information about whether you must make any registry changes after you apply the hotfix package
  • The files that are contained in the hotfix package

SYMPTOMS

In Microsoft SQL Server 2005, you use transactional replication to replicate the execution of stored procedures to subscribers of an article. When you do this, you may receive the following error message on the publisher server:
Insufficient memory to run query
Additionally, the follow error message is logged in the SQL Server Errorlog file:
Error: 701, Severity: 17, State: 123.
There is insufficient system memory to run this query.

CAUSE

This problem occurs because most of the buffer pool memory is used up by the replication cache.

RESOLUTION

Cumulative update information

To resolve this problem, obtain the cumulative update package (build 3161) for SQL Server 2005 Service Pack 2 (SP2). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
935356 Cumulative update package (build 3161) for SQL Server 2005 Service Pack 2 is available

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

Prerequisites

To apply the SQL Server 2005 Service Pack 1 (SP1)-based hotfix, you must have SQL Server 2005 SP1 installed. To apply the SQL Server 2005 SP2-based hotfix, you must have SQL Server 2005 SP2 installed.

For more information about how to obtain SQL Server 2005 Service Pack 1 or SQL Server 2005 Service Pack 2, 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.

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 of 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 SP1-based hotfix, 32-bit versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Bcp.exe2005.90.2233.069,48816-May-200716:30x86
Databasemailengine.dll9.0.2233.075,12016-May-200716:30x86
Logread.exe2005.90.2233.0400,75216-May-200716:31x86
Microsoft.analysisservices.adomdclient.dll9.0.2233.0546,16016-May-200716:31x86
Microsoft.analysisservices.deploymentengine.dll9.0.2233.0140,65616-May-200716:31x86
Microsoft.analysisservices.dll9.0.2233.01,217,90416-May-200716:31x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2233.078,19216-May-200716:31x86
Microsoft.sqlserver.sqlenum.dll9.0.2233.0910,70416-May-200716:31x86
Msasxpress.dll9.0.2233.024,94416-May-200716:31x86
Msgprox.dll2005.90.2233.0200,56016-May-200716:31x86
Msmdlocal.dll9.0.2233.015,646,06416-May-200716:31x86
Msmdredir.dll9.0.2233.03,993,96816-May-200716:31x86
Mssqlsystemresource.ldfNot Applicable524,28816-May-200712:55Not Applicable
Mssqlsystemresource.mdfNot Applicable40,108,03216-May-200712:55Not Applicable
Odsole70.dll2005.90.2233.059,76016-May-200716:31x86
Qrdrsvc.exe2005.90.2233.0369,52016-May-200716:31x86
Rdistcom.dll2005.90.2233.0643,44016-May-200716:31x86
repldp.dll2005.90.2233.0187,24816-May-200716:31x86
Replmerg.exe2005.90.2233.0320,88016-May-200716:31x86
Replprov.dll2005.90.2233.0550,25616-May-200716:31x86
Replrec.dll2005.90.2233.0784,75216-May-200716:31x86
Replsub.dll2005.90.2233.0407,40816-May-200716:31x86
Spresolv.dll2005.90.2233.0177,00816-May-200716:25x86
Sqlaccess.dll2005.90.2233.0350,57616-May-200716:25x86
Sqlagent90.exe2005.90.2233.0321,39216-May-200716:25x86
Sqlservr.exe2005.90.2233.028,979,11216-May-200716:25x86
Sqsrvres.dll2005.90.2233.066,41616-May-200716:25x86
Sysdbupg.sqlNot Applicable218,48615-May-200716:11Not Applicable
Xmlsub.dll2005.90.2233.0195,44016-May-200716:25x86
Xpstar90.dll2005.90.2233.0295,28016-May-200716:25x86
Xpstar90.rll2005.90.2233.0155,50416-May-200716:31x86
SQL Server 2005 SP1-based hotfix, 64-bit version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Bcp.exe2005.90.2233.088,94416-May-200721:04x64
Databasemailengine.dll9.0.2233.075,12016-May-200721:04x86
Logread.exe2005.90.2233.0525,16816-May-200721:04x64
Microsoft.analysisservices.adomdclient.dll9.0.2233.0546,16016-May-200716:31x86
Microsoft.analysisservices.adomdclient.dll9.0.2233.0546,16016-May-200721:04x86
Microsoft.analysisservices.deploymentengine.dll9.0.2233.0140,65616-May-200716:31x86
Microsoft.analysisservices.dll9.0.2233.01,217,90416-May-200716:31x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2233.078,19216-May-200716:31x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2233.094,06416-May-200721:04x64
Microsoft.sqlserver.sqlenum.dll9.0.2233.0877,93616-May-200721:04x86
Msasxpress.dll9.0.2233.024,94416-May-200716:31x86
Msasxpress.dll9.0.2233.030,06416-May-200721:04x64
Msgprox.dll2005.90.2233.0262,00016-May-200721:04x64
Msmdlocal.dll9.0.2233.015,646,06416-May-200716:31x86
Msmdredir.dll9.0.2233.03,993,96816-May-200716:31x86
Mssqlsystemresource.ldfNot Applicable524,28816-May-200712:55Not Applicable
Mssqlsystemresource.mdfNot Applicable40,108,03216-May-200712:55Not Applicable
Odsole70.dll2005.90.2233.090,99216-May-200721:04x64
Qrdrsvc.exe2005.90.2233.0434,03216-May-200721:04x64
Rdistcom.dll2005.90.2233.0836,46416-May-200721:04x64
Repldp.dll2005.90.2233.0187,24816-May-200716:31x86
Repldp.dll2005.90.2233.0237,93616-May-200721:04x64
Replmerg.exe2005.90.2233.0417,64816-May-200721:04x64
Replprov.dll2005.90.2233.0747,88816-May-200721:04x64
Replrec.dll2005.90.2233.01,010,54416-May-200721:04x64
Replsub.dll2005.90.2233.0528,24016-May-200721:04x64
Spresolv.dll2005.90.2233.0225,64816-May-200721:04x64
Sqlaccess.dll2005.90.2233.0357,74416-May-200721:04x86
Sqlagent90.exe2005.90.2233.0392,56016-May-200721:04x64
Sqlservr.exe2005.90.2233.039,364,97616-May-200721:04x64
Sqsrvres.dll2005.90.2233.078,19216-May-200721:05x64
Sysdbupg.sqlNot Applicable218,48615-May-200716:11Not Applicable
Xmlsub.dll2005.90.2233.0319,85616-May-200721:05x64
Xpstar90.dll2005.90.2233.0543,60016-May-200721:05x64
Xpstar90.rll2005.90.2233.0156,01616-May-200721:04x64
SQL Server 2005 SP1-based hotfix, Itanium architecture version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Bcp.exe2005.90.2233.0157,55216-May-200718:23IA-64
Databasemailengine.dll9.0.2233.075,12016-May-200718:23x86
Logread.exe2005.90.2233.01,098,09616-May-200718:23IA-64
Microsoft.analysisservices.adomdclient.dll9.0.2233.0546,16016-May-200716:31x86
Microsoft.analysisservices.adomdclient.dll9.0.2233.0546,16016-May-200718:23x86
Microsoft.analysisservices.deploymentengine.dll9.0.2233.0140,65616-May-200716:31x86
Microsoft.analysisservices.dll9.0.2233.01,217,90416-May-200716:31x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2233.078,19216-May-200716:31x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2233.0165,74416-May-200718:23IA-64
Microsoft.sqlserver.sqlenum.dll9.0.2233.0877,93616-May-200718:23x86
Msasxpress.dll9.0.2233.024,94416-May-200716:31x86
Msasxpress.dll9.0.2233.057,71216-May-200718:23IA-64
Msgprox.dll2005.90.2233.0545,13616-May-200718:23IA-64
Msmdlocal.dll9.0.2233.048,718,70416-May-200718:23IA-64
Msmdredir.dll9.0.2233.06,249,32816-May-200718:23IA-64
Mssqlsystemresource.ldfNot Applicable524,28816-May-200712:55Not Applicable
Mssqlsystemresource.mdfNot Applicable40,108,03216-May-200712:55Not Applicable
Odsole70.dll2005.90.2233.0180,08016-May-200718:23IA-64
Qrdrsvc.exe2005.90.2233.0943,98416-May-200718:23IA-64
Rdistcom.dll2005.90.2233.01,884,01616-May-200718:23IA-64
Repldp.dll2005.90.2233.0187,24816-May-200716:31x86
Repldp.dll2005.90.2233.0511,34416-May-200718:23IA-64
Replmerg.exe2005.90.2233.0957,29616-May-200718:23IA-64
Replprov.dll2005.90.2233.01,619,82416-May-200718:23IA-64
Replrec.dll2005.90.2233.02,143,60016-May-200718:23IA-64
Replsub.dll2005.90.2233.01,159,53616-May-200718:23IA-64
Spresolv.dll2005.90.2233.0498,03216-May-200718:23IA-64
Sqlaccess.dll2005.90.2233.0352,11216-May-200718:23x86
Sqlagent90.exe2005.90.2233.01,143,66416-May-200718:23IA-64
Sqlservr.exe2005.90.2233.072,213,87216-May-200718:23IA-64
Sqsrvres.dll2005.90.2233.0137,07216-May-200718:23IA-64
Sysdbupg.sqlNot Applicable218,48615-May-200716:11Not Applicable
Xmlsub.dll2005.90.2233.0593,26416-May-200718:23IA-64
Xpstar90.dll2005.90.2233.0953,71216-May-200718:23IA-64
Xpstar90.rll2005.90.2233.0154,99216-May-200718:23IA-64
SQL Server 2005 SP2-based hotfix, 32-bit versions
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.maintenanceplantasks.dll9.0.3155.0296,30413-Mar-200714:12x86
Msmdlocal.dll9.0.3155.015,930,22413-Mar-200714:12x86
Mssqlsystemresource.ldfNot Applicable524,28813-Mar-200711:11Not Applicable
Mssqlsystemresource.mdfNot Applicable40,173,56813-Mar-200711:11Not Applicable
Rdistcom.dll2005.90.3155.0644,46413-Mar-200714:12x86
Sqlaccess.dll2005.90.3155.0350,57613-Mar-200714:12x86
Sqlservr.exe2005.90.3155.029,192,56013-Mar-200714:12x86
SQL Server 2005 SP2-based hotfix, 64-bit version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.maintenanceplantasks.dll9.0.3155.0296,30413-Mar-200714:12x86
Msmdlocal.dll9.0.3155.015,930,22413-Mar-200714:12x86
Mssqlsystemresource.ldfNot Applicable524,28813-Mar-200711:11Not Applicable
Mssqlsystemresource.mdfNot Applicable40,173,56813-Mar-200711:11Not Applicable
Rdistcom.dll2005.90.3155.0828,27213-Mar-200719:19x64
Sqlaccess.dll2005.90.3155.0357,74413-Mar-200719:19x86
Sqlservr.exe2005.90.3155.038,577,00813-Mar-200719:19x64
SQL Server 2005 SP2-based hotfix, Itanium architecture version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.maintenanceplantasks.dll9.0.3155.0296,30413-Mar-200714:12x86
Msmdlocal.dll9.0.3155.049,815,92013-Mar-200720:35IA-64
Mssqlsystemresource.ldfNot Applicable524,28813-Mar-200711:11Not Applicable
Mssqlsystemresource.mdfNot Applicable40,173,56813-Mar-200711:11Not Applicable
Rdistcom.dll2005.90.3155.01,885,04013-Mar-200720:35IA-64
Sqlaccess.dll2005.90.3155.0352,11213-Mar-200720:35x86
Sqlservr.exe2005.90.3155.072,547,18413-Mar-200720:35IA-64

WORKAROUND

To work around this problem, run the sp_replflush stored procedure to clear the replication cache.

Note The replication cache is not cleared as soon as you run the stored procedure. Instead, the stored procedure sets up a flag, and this flag causes the replication cache to be cleared before the next cache read operation occurs.

STATUS

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

Properties

Article ID: 933499 - Last Review: October 8, 2011 - Revision: 2.0
APPLIES TO
  • 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
Keywords: 
kbautohotfix kbqfe kbhotfixserver KB933499

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