0

I am trying to import a 50mb sql file using sqlcmd but it throws the following error:

There is insufficient system memory in resource pool 'default' to run this query error.

sqlcmd import error

I am running SQL server 2019 Developer in an EC2 instance having 4GB memory. SQL server is set to use default memory (2147483647 MB). I also tried with sql service in single user mode by running "NET START MSSQLSERVER /f /mSQLCMD" but still no luck. Can anyone suggest what could be wrong?

1 Answer 1

0

The problem is fixed by adding a GO statement after every thousand rows as suggested by @Remus Rusanu here: https://stackoverflow.com/a/1995728.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.