Large script failing on SQL Server 2008 R2 Express -


i need run "large" script on sql server 2008 r2 express , failing with

there insufficient system memory in resource pool 'internal' run query.

the script around 10mb saved disk, contains 54000 top-level statements (insert/delete/update) , declares 5000 variables (of type bigint).

i running sql server 2008 r2 express 64bit 10.5.1746. there 3gb allocated vm, 1gb allocated sql server, 512kb minimum memory per query. results of dbcc memorystatus can found on this link.

the script merely restoration of (lightweight) production database exported sql statements (data only, no schema).

if it's not possible this, shocked sql server cannot handle such basic scenario. i've tested equivalent scenario on firebird , sqlite , it's worked fine! (and open-source products).

note: not possible break script variables declared in beginning referenced in end of script.

note: before rushing flag "duplicate" please note other similar threads not address specific issue "how run large script in sql server 2008" .

sql server express limited in amount of memory can use. of memory portion can used executing queries. can try setting forced parameterization on database may reduce memory required plan leave more query execution (depends on specific queries).

the best option use edition of sql server supports more memory. developer edition affordable can't used production use. standard edition next best bet.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -