There was a local SQL Server 2012 instance. Once memory has decreased to critical 128 MB and then has stopped by me.
I can not start it (idea: not enough memory).
Is it possible to increase this limit in config file or in system registry?
There was a local SQL Server 2012 instance. Once memory has decreased to critical 128 MB and then has stopped by me.
I can not start it (idea: not enough memory).
Is it possible to increase this limit in config file or in system registry?
-f, click Add, then click ApplyThis will start the instance in minimal configuration mode (single user, no CHECKPOINT, and no startup procedures are run), which should allow you enough resources to connect and fix what you broke.
Confirmed this can still occur in SQL 2019, so this post is still relevant.
Aaron's answer is correct, but there are situations where changing the setting back using Management Studio isn't possible or practical; in which case you may have to do so at the command line via sqlcmd. Here are those steps, thanks largely to this answer by spaghettidba and this blog post by Marek Maśko:
-f to your SQL startup parameters, per Aaron's answer.-m"sqlcmd" to the startup parameters; this will ensure only your connection will succeed.cmd promptsqlcmd to connect to the default local instance, or use the -S parameter to connect to a named server and/or instance: sqlcmd -S myserver\SQL2sqlcmd prompt, enter the following commands (the expected results are also shown; note the sp_configure options are case-sensitive):1> exec sp_configure 'show advanced options', 1
2> GO
Configuration option 'show advanced options' changed from 0 to 1. Run the
RECONFIGURE statement to install.
1> RECONFIGURE
2> GO
1> EXEC sp_configure 'max server memory (MB)', 16000
2> GO
Configuration option 'max server memory (MB)' changed from 128 to 16000. Run the
RECONFIGURE statement to install.
1> RECONFIGURE
2> GO
1> QUIT
Thanks!
– Aleksandro M Granda May 13 '15 at 16:26