T The Triage ManualTechnical Guides for IT Emergencies
P3 · Windows Server

SQL Server Inaccessible After Maximum Memory Set Too Low — DAC Recovery

Setting SQL Server's Maximum Server Memory to an extremely low value (e.g., 15 MB) starves the engine of resources needed to handle normal login requests, causing all standard connections to fail despite the service remaining running. The Dedicated Administrator Connection (DAC) bypasses normal resource constraints and provides a single reserved connection specifically for recovery scenarios. Once connected via DAC, sp_configure can be used to restore Maximum Memory to a viable value, immediately resolving the lockout without a service restart.

Indicators

Likely causes

Diagnostic steps

  1. Confirm the SQL Server service is still running via Services.msc or 'Get-Service MSSQLSERVER' in PowerShell. If running but unresponsive to logins, proceed with DAC recovery.
  2. Open SQL Server Management Studio (SSMS). Click 'New Query' (not 'Connect' via Object Explorer) to open the connection dialog directly for a query window.
  3. In the Server Name field, enter 'ADMIN:servername' — replacing 'servername' with your actual SQL Server instance name or hostname (e.g., 'ADMIN:SQLPROD01' or 'ADMIN:SQLPROD01\INSTANCENAME'). Set authentication as appropriate and click Connect.
  4. Dismiss any non-critical errors about Object Explorer, IntelliSense, or the database dropdown failing to populate. These occur because DAC permits only a single connection, and these SSMS subsystems each attempt their own connection — they are expected and benign in this context.
  5. Alternatively, connect via sqlcmd from the command line on the SQL Server host itself: sqlcmd -S ADMIN:servername -E (using Windows Authentication) or sqlcmd -S ADMIN:servername -U sa -P <password>. Local sqlcmd DAC does not require remote DAC to be enabled.
  6. Once connected via DAC, verify the current Maximum Memory setting by running: EXEC sp_configure 'max server memory (MB)'; — confirm the run_value shows the problematic low figure.
  7. Restore Maximum Memory to an appropriate value for the server. As a baseline, set it to at least 256 MB for minimal instances or a calculated value leaving 2–4 GB for the OS. Example for 2048 MB: EXEC sp_configure 'max server memory (MB)', 2048; RECONFIGURE WITH OVERRIDE;
  8. Verify the new setting is active: EXEC sp_configure 'max server memory (MB)'; — confirm run_value now reflects the updated figure.
  9. Test that normal SSMS or application connections are now accepted. Close the DAC session — only one DAC connection is permitted at a time, so leaving it open may block future emergency access.

Resolution path

Prevention

Tools

References

sql-servermax-server-memorymemory-configurationdedicated-administrator-connectiondacsp_configuressmslogin-failurerecoverymisconfigurationreconfigure-with-overridesqlcmdwindows-server