I have one query with 21072 individual update statements in SSMS. I am using sql express r2 sp2. I am updating only one varchar(255) text field with short strings < 100 chars. I only get partway (3344 executions) through the statements before I get the error.
“There is insufficient system memory in resource pool ‘internal’ to run this query”
I have 16GB physical memory on Win7-64 Ultimate. This should be a trivial operation with no errors.
This seems like a bug in the software or I have a default memory setting in Sql express that must be changed.
I apologize for errors in advance and thank you for answering.
Product details:
Microsoft SQL Server 2008 R2 (SP2) – 10.50.4000.0 (X64) Jun 28 2012 08:36:30 Copyright (c) Microsoft Corporation Express Edition with Advanced Services (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)
SQL Server 2008 R2 Express is limited to 1 CPU and 1GB of RAM.
Without more specific details it is hard to help you further. Suggest you post your actual TSQL.
Update: you are saying that you have 21072 individual update statements, run as a single batch. Try putting some
GO‘s in there… e.g.That assumes you are not trying to run as a single transaction, of course. (Which you don’t appear to be)