Error/Fix: There is insufficient system memory in resource pool ‘default’ to run this query.
Recently I was reading about Temporal Tables feature that has been introduced with SQL Server 2016. So, as usual, I thought to get the knowledge in practice with my virtual lab. I tried starting SQL Services, but to my surprise, SQL Services did not start even after multiple attempts. Checking the SQL Server Error Logs found below message:-
Error: 701, Severity: 17, State: 137.
There is insufficient system memory in resource pool ‘default’ to run this query.
SQL Server shutdown has been initiated
Resolution:-
The message indicates that SQL Instance need more memory to start. In my case SQL had 768 MB Max memory with 1 GB total Box physical memory. So, the first step taken was to increase Box memory from 1 GB to 4 GB. But since the SQL Max memory was configured for 768 MB, SQL Services could not start. And I needed the SQL Services up and running before I can update the Max Memory of SQL Instance. This is the situation where we need to start the SQL Services in Single-User Mode.
So at first, I started SQL Services using below command in Command Prompt-
1 |
net start MSSQLSERVER /m |
Replace the ‘MSSQLSERVER‘ with service name for your Sql Instance by checking services.msc.
Once the SQL Services started in Single-User mode, I simply connected to SQL Instance using SQLCMD utility and updated the Max Memory Configuration using TSQL.
Friends, please feel free to correct me by comments. If you like the article, do Like & Share. Happy Coding 🙂
Related
Related Posts
-
Error/Fix: SQL Server has encountered 26063 occurrence(s) of I/O requests taking longer than 15 seconds to complete
1 Comment | Jan 9, 2017
-
Find TempDb Space Consumers in SQL Server
No Comments | Jun 19, 2021
-
Analyzing Deadlock Issues
2 Comments | Feb 21, 2017
-
Easy Trick to Debug Long TSQL Codes
No Comments | May 6, 2017
About The Author
Ajay Dwivedi
I am Microsoft Certified Professional having 10+ years of experience in SQL Server Querying, Database Design, and Administration. I am fond of Query Tuning and like to automate things using TSQL & PowerShell. I also have experience of implementing end-to-end Data Warehouse solution, and Data Migration using ETL tools SQL Server Integration Services (SSIS), Pentaho Business Analytics, and have designed Database Inventory through PowerShell, Python, and Django etc.
Leave a ReplyCancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Hi Ajay…. better to share the step by step
That’s good for learner’s
Hi Vijay.
Thanks for taking time to reply. Single-User mode or SQLCMD are topics that can take entire day in themself. Moreover, I have put appropriate links wherever possible related to those topics. But sure, keeping your suggestion in mind, from next time, I’ll try to share detailed method through YouTube videos.
Thanks & Regards,
Ajay