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"
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.
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.
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:
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:
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:
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 name
File version
File size
Date
Time
Platform
Bcp.exe
2005.90.2233.0
69,488
16-May-2007
16:30
x86
Databasemailengine.dll
9.0.2233.0
75,120
16-May-2007
16:30
x86
Logread.exe
2005.90.2233.0
400,752
16-May-2007
16:31
x86
Microsoft.analysisservices.adomdclient.dll
9.0.2233.0
546,160
16-May-2007
16:31
x86
Microsoft.analysisservices.deploymentengine.dll
9.0.2233.0
140,656
16-May-2007
16:31
x86
Microsoft.analysisservices.dll
9.0.2233.0
1,217,904
16-May-2007
16:31
x86
Microsoft.sqlserver.mgdsqldumper.dll
2005.90.2233.0
78,192
16-May-2007
16:31
x86
Microsoft.sqlserver.sqlenum.dll
9.0.2233.0
910,704
16-May-2007
16:31
x86
Msasxpress.dll
9.0.2233.0
24,944
16-May-2007
16:31
x86
Msgprox.dll
2005.90.2233.0
200,560
16-May-2007
16:31
x86
Msmdlocal.dll
9.0.2233.0
15,646,064
16-May-2007
16:31
x86
Msmdredir.dll
9.0.2233.0
3,993,968
16-May-2007
16:31
x86
Mssqlsystemresource.ldf
Not Applicable
524,288
16-May-2007
12:55
Not Applicable
Mssqlsystemresource.mdf
Not Applicable
40,108,032
16-May-2007
12:55
Not Applicable
Odsole70.dll
2005.90.2233.0
59,760
16-May-2007
16:31
x86
Qrdrsvc.exe
2005.90.2233.0
369,520
16-May-2007
16:31
x86
Rdistcom.dll
2005.90.2233.0
643,440
16-May-2007
16:31
x86
repldp.dll
2005.90.2233.0
187,248
16-May-2007
16:31
x86
Replmerg.exe
2005.90.2233.0
320,880
16-May-2007
16:31
x86
Replprov.dll
2005.90.2233.0
550,256
16-May-2007
16:31
x86
Replrec.dll
2005.90.2233.0
784,752
16-May-2007
16:31
x86
Replsub.dll
2005.90.2233.0
407,408
16-May-2007
16:31
x86
Spresolv.dll
2005.90.2233.0
177,008
16-May-2007
16:25
x86
Sqlaccess.dll
2005.90.2233.0
350,576
16-May-2007
16:25
x86
Sqlagent90.exe
2005.90.2233.0
321,392
16-May-2007
16:25
x86
Sqlservr.exe
2005.90.2233.0
28,979,112
16-May-2007
16:25
x86
Sqsrvres.dll
2005.90.2233.0
66,416
16-May-2007
16:25
x86
Sysdbupg.sql
Not Applicable
218,486
15-May-2007
16:11
Not Applicable
Xmlsub.dll
2005.90.2233.0
195,440
16-May-2007
16:25
x86
Xpstar90.dll
2005.90.2233.0
295,280
16-May-2007
16:25
x86
Xpstar90.rll
2005.90.2233.0
155,504
16-May-2007
16:31
x86
SQL Server 2005 SP1-based hotfix, 64-bit version
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Bcp.exe
2005.90.2233.0
88,944
16-May-2007
21:04
x64
Databasemailengine.dll
9.0.2233.0
75,120
16-May-2007
21:04
x86
Logread.exe
2005.90.2233.0
525,168
16-May-2007
21:04
x64
Microsoft.analysisservices.adomdclient.dll
9.0.2233.0
546,160
16-May-2007
16:31
x86
Microsoft.analysisservices.adomdclient.dll
9.0.2233.0
546,160
16-May-2007
21:04
x86
Microsoft.analysisservices.deploymentengine.dll
9.0.2233.0
140,656
16-May-2007
16:31
x86
Microsoft.analysisservices.dll
9.0.2233.0
1,217,904
16-May-2007
16:31
x86
Microsoft.sqlserver.mgdsqldumper.dll
2005.90.2233.0
78,192
16-May-2007
16:31
x86
Microsoft.sqlserver.mgdsqldumper.dll
2005.90.2233.0
94,064
16-May-2007
21:04
x64
Microsoft.sqlserver.sqlenum.dll
9.0.2233.0
877,936
16-May-2007
21:04
x86
Msasxpress.dll
9.0.2233.0
24,944
16-May-2007
16:31
x86
Msasxpress.dll
9.0.2233.0
30,064
16-May-2007
21:04
x64
Msgprox.dll
2005.90.2233.0
262,000
16-May-2007
21:04
x64
Msmdlocal.dll
9.0.2233.0
15,646,064
16-May-2007
16:31
x86
Msmdredir.dll
9.0.2233.0
3,993,968
16-May-2007
16:31
x86
Mssqlsystemresource.ldf
Not Applicable
524,288
16-May-2007
12:55
Not Applicable
Mssqlsystemresource.mdf
Not Applicable
40,108,032
16-May-2007
12:55
Not Applicable
Odsole70.dll
2005.90.2233.0
90,992
16-May-2007
21:04
x64
Qrdrsvc.exe
2005.90.2233.0
434,032
16-May-2007
21:04
x64
Rdistcom.dll
2005.90.2233.0
836,464
16-May-2007
21:04
x64
Repldp.dll
2005.90.2233.0
187,248
16-May-2007
16:31
x86
Repldp.dll
2005.90.2233.0
237,936
16-May-2007
21:04
x64
Replmerg.exe
2005.90.2233.0
417,648
16-May-2007
21:04
x64
Replprov.dll
2005.90.2233.0
747,888
16-May-2007
21:04
x64
Replrec.dll
2005.90.2233.0
1,010,544
16-May-2007
21:04
x64
Replsub.dll
2005.90.2233.0
528,240
16-May-2007
21:04
x64
Spresolv.dll
2005.90.2233.0
225,648
16-May-2007
21:04
x64
Sqlaccess.dll
2005.90.2233.0
357,744
16-May-2007
21:04
x86
Sqlagent90.exe
2005.90.2233.0
392,560
16-May-2007
21:04
x64
Sqlservr.exe
2005.90.2233.0
39,364,976
16-May-2007
21:04
x64
Sqsrvres.dll
2005.90.2233.0
78,192
16-May-2007
21:05
x64
Sysdbupg.sql
Not Applicable
218,486
15-May-2007
16:11
Not Applicable
Xmlsub.dll
2005.90.2233.0
319,856
16-May-2007
21:05
x64
Xpstar90.dll
2005.90.2233.0
543,600
16-May-2007
21:05
x64
Xpstar90.rll
2005.90.2233.0
156,016
16-May-2007
21:04
x64
SQL Server 2005 SP1-based hotfix, Itanium architecture version
Collapse this tableExpand this table
File name
File version
File
size
Date
Time
Platform
Bcp.exe
2005.90.2233.0
157,552
16-May-2007
18:23
IA-64
Databasemailengine.dll
9.0.2233.0
75,120
16-May-2007
18:23
x86
Logread.exe
2005.90.2233.0
1,098,096
16-May-2007
18:23
IA-64
Microsoft.analysisservices.adomdclient.dll
9.0.2233.0
546,160
16-May-2007
16:31
x86
Microsoft.analysisservices.adomdclient.dll
9.0.2233.0
546,160
16-May-2007
18:23
x86
Microsoft.analysisservices.deploymentengine.dll
9.0.2233.0
140,656
16-May-2007
16:31
x86
Microsoft.analysisservices.dll
9.0.2233.0
1,217,904
16-May-2007
16:31
x86
Microsoft.sqlserver.mgdsqldumper.dll
2005.90.2233.0
78,192
16-May-2007
16:31
x86
Microsoft.sqlserver.mgdsqldumper.dll
2005.90.2233.0
165,744
16-May-2007
18:23
IA-64
Microsoft.sqlserver.sqlenum.dll
9.0.2233.0
877,936
16-May-2007
18:23
x86
Msasxpress.dll
9.0.2233.0
24,944
16-May-2007
16:31
x86
Msasxpress.dll
9.0.2233.0
57,712
16-May-2007
18:23
IA-64
Msgprox.dll
2005.90.2233.0
545,136
16-May-2007
18:23
IA-64
Msmdlocal.dll
9.0.2233.0
48,718,704
16-May-2007
18:23
IA-64
Msmdredir.dll
9.0.2233.0
6,249,328
16-May-2007
18:23
IA-64
Mssqlsystemresource.ldf
Not Applicable
524,288
16-May-2007
12:55
Not Applicable
Mssqlsystemresource.mdf
Not Applicable
40,108,032
16-May-2007
12:55
Not Applicable
Odsole70.dll
2005.90.2233.0
180,080
16-May-2007
18:23
IA-64
Qrdrsvc.exe
2005.90.2233.0
943,984
16-May-2007
18:23
IA-64
Rdistcom.dll
2005.90.2233.0
1,884,016
16-May-2007
18:23
IA-64
Repldp.dll
2005.90.2233.0
187,248
16-May-2007
16:31
x86
Repldp.dll
2005.90.2233.0
511,344
16-May-2007
18:23
IA-64
Replmerg.exe
2005.90.2233.0
957,296
16-May-2007
18:23
IA-64
Replprov.dll
2005.90.2233.0
1,619,824
16-May-2007
18:23
IA-64
Replrec.dll
2005.90.2233.0
2,143,600
16-May-2007
18:23
IA-64
Replsub.dll
2005.90.2233.0
1,159,536
16-May-2007
18:23
IA-64
Spresolv.dll
2005.90.2233.0
498,032
16-May-2007
18:23
IA-64
Sqlaccess.dll
2005.90.2233.0
352,112
16-May-2007
18:23
x86
Sqlagent90.exe
2005.90.2233.0
1,143,664
16-May-2007
18:23
IA-64
Sqlservr.exe
2005.90.2233.0
72,213,872
16-May-2007
18:23
IA-64
Sqsrvres.dll
2005.90.2233.0
137,072
16-May-2007
18:23
IA-64
Sysdbupg.sql
Not Applicable
218,486
15-May-2007
16:11
Not Applicable
Xmlsub.dll
2005.90.2233.0
593,264
16-May-2007
18:23
IA-64
Xpstar90.dll
2005.90.2233.0
953,712
16-May-2007
18:23
IA-64
Xpstar90.rll
2005.90.2233.0
154,992
16-May-2007
18:23
IA-64
SQL Server 2005 SP2-based hotfix, 32-bit versions
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Microsoft.sqlserver.maintenanceplantasks.dll
9.0.3155.0
296,304
13-Mar-2007
14:12
x86
Msmdlocal.dll
9.0.3155.0
15,930,224
13-Mar-2007
14:12
x86
Mssqlsystemresource.ldf
Not Applicable
524,288
13-Mar-2007
11:11
Not Applicable
Mssqlsystemresource.mdf
Not Applicable
40,173,568
13-Mar-2007
11:11
Not Applicable
Rdistcom.dll
2005.90.3155.0
644,464
13-Mar-2007
14:12
x86
Sqlaccess.dll
2005.90.3155.0
350,576
13-Mar-2007
14:12
x86
Sqlservr.exe
2005.90.3155.0
29,192,560
13-Mar-2007
14:12
x86
SQL Server 2005 SP2-based hotfix, 64-bit version
Collapse this tableExpand this table
File name
File version
File size
Date
Time
Platform
Microsoft.sqlserver.maintenanceplantasks.dll
9.0.3155.0
296,304
13-Mar-2007
14:12
x86
Msmdlocal.dll
9.0.3155.0
15,930,224
13-Mar-2007
14:12
x86
Mssqlsystemresource.ldf
Not Applicable
524,288
13-Mar-2007
11:11
Not Applicable
Mssqlsystemresource.mdf
Not Applicable
40,173,568
13-Mar-2007
11:11
Not Applicable
Rdistcom.dll
2005.90.3155.0
828,272
13-Mar-2007
19:19
x64
Sqlaccess.dll
2005.90.3155.0
357,744
13-Mar-2007
19:19
x86
Sqlservr.exe
2005.90.3155.0
38,577,008
13-Mar-2007
19:19
x64
SQL Server 2005 SP2-based hotfix, Itanium architecture version
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.