SQL Script – Out Of Memory

While trying to run a large script in SQL Server Express, I encountered this exception:
“There is insufficient system memory in resource pool ‘internal’ to run this query.”

The script was around 60 MB, enclosed in a single transaction.

In this case, adding some “GO” statements in the script resolved the issue and allowed the script to execute. Of course, after each “GO”, any variables being used have to be re-declared and initialized.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: