I accidentally set my sql server maximum memory too low (32MB). After I changed it, no one could log on. We got an error message "Shared Memory Provider: No process is on the other end of the pipe".
I stopped and ended task all SQLServer related services. I still could not login into the db again. I tried to start sqlserver with:
sqlservr.exe -m
And try to logged in using "c:\sqlcmd -A" but I could not log on to change maximum memory. Then I tried to start with
sqlservr.exe -f
I still could not log in. It complaint that only one adminstrator can log in.
After two hours of frustration, I started the database again using
sqlservr.exe -f -m
This did the trick. I was able to login again using "sqlcmd -A" on a separate session and reset the maximum memory to 4GB:
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'max server memory', 4096;
GO
RECONFIGURE;
GO
Question: Is there any way to change max memory in the Registry?
Thanks