SQL Server error 1438 means the instance you tried to configure refused the request, so the change never took effect. The usual fix is to stop the SQL Server service, start it in single-user mode from an elevated command prompt, apply the configuration change with the correct syntax, then restart the service normally. This guide walks through that recovery path for a local SQL Server instance on Windows, plus the checks that prevent the error from coming back.

What You'll Need

  • Local administrator rights on the Windows machine hosting SQL Server.
  • The SQL Server service name (for example MSSQLSERVER for a default instance, or MSSQL$InstanceName for a named instance). You can find it in SQL Server Configuration Manager under SQL Server Services.
  • An elevated Command Prompt or PowerShell window.
  • The sqlservr.exe path, typically under C:\Program Files\Microsoft SQL Server\MSSQLxx.InstanceName\MSSQL\Binn.
  • Login credentials for a sysadmin account if SQL Server authentication is used.

Step-by-Step

  1. Confirm the error context. Note exactly what you were changing when error 1438 appeared: a startup parameter, a memory setting, a protocol, or a service account. The instance rejected that specific request, so the change is not active. Do not repeat the same action without changing your approach.
  2. Open SQL Server Configuration Manager. In the left pane, select SQL Server Services. Find your instance, right-click it, and choose Stop. If other services depend on it, such as SQL Server Agent, stop those first.
  3. Start the instance in single-user mode. Open Command Prompt as administrator. Change to the Binn folder for your instance, for example: cd "C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\Binn". Then run: sqlservr.exe -m -s MSSQLSERVER. For a named instance, replace MSSQLSERVER with the instance name. The console window shows startup messages and must stay open.
  4. Connect with sqlcmd in a second elevated window. Run: sqlcmd -S .\MSSQLSERVER -E. For a named instance use .\InstanceName. The -E switch uses Windows authentication. If you use SQL authentication, add -U sa and let it prompt for the password.
  5. Apply the configuration change. Use the correct system stored procedure or ALTER statement for what you intended. For a startup parameter, use sp_configure with the parameter name and value, then RECONFIGURE. For a service account or protocol change, prefer SQL Server Configuration Manager after the instance is back online, because those changes are not made through T-SQL.
  6. Exit and stop the single-user instance. Type EXIT in sqlcmd, then press Ctrl+C in the sqlservr.exe console window, or close it. Confirm in SQL Server Configuration Manager that the service is stopped.
  7. Start the service normally. In SQL Server Configuration Manager, right-click the instance and choose Start. Then connect with SSMS or sqlcmd and verify the setting took effect, for example by querying sys.configurations.
  8. Check the ERRORLOG. Open the current ERRORLOG file in the instance's Log folder. Look for messages around the time of the failed request; they often name the parameter or value that was rejected, which tells you what to correct.

Common Mistakes

  • Running sqlservr.exe -m without -s on a machine with multiple instances, which can start the wrong instance in single-user mode.
  • Leaving SQL Server Agent running, so it grabs the single-user connection before you do. Stop dependent services first.
  • Using the wrong instance name in the -S parameter, which connects to a different instance or fails entirely.
  • Forgetting to run the command prompt as administrator, so the service cannot read its configuration or the Binn folder.
  • Changing service account or protocol settings through T-SQL instead of SQL Server Configuration Manager, which is where those settings belong.
  • Repeating the same failed request without reading the ERRORLOG, which usually explains the rejection.

Tips

  • Record the exact command or setting you used before making changes, so you can reverse it if needed.
  • Use SQL Server Configuration Manager for service accounts, protocols, and startup parameters where possible; it validates values before applying them.
  • Keep a copy of the ERRORLOG before restarting, in case the new start overwrites useful entries.
  • If the instance hosts production databases, schedule the single-user window when users are offline; single-user mode allows only one connection.
  • After any change, test with a simple query such as SELECT @@VERSION to confirm the instance is healthy.

Troubleshooting

If the instance will not start in single-user mode, check that no other service or user is already connected. Stop SQL Server Agent, SQL Server Browser, and any application services that connect to the instance. If sqlcmd cannot connect, verify the instance name and that the service is actually running in the console window. If the configuration change still fails, the value may be outside the allowed range; query sys.configurations to see the minimum and maximum for that setting. If the service account was changed and the instance will not start, use SQL Server Configuration Manager to set the account back to a known working one. When the ERRORLOG shows a permissions problem, confirm the service account has read access to the Binn folder and the registry keys under the SQL Server instance. As a last resort, repair the instance from the SQL Server installation media, but back up databases first because repair can affect instance-level settings.

Frequently Asked Questions

What does error 1438 actually mean?

The instance received a configuration request it would not accept, so it rejected the change. The setting remains at its previous value until you apply a valid change.

Can I fix error 1438 without single-user mode?

Sometimes. If the rejected change was made through SQL Server Configuration Manager, correct the value there and restart the service. Single-user mode is needed when the instance itself will not start or when a startup parameter must be removed.

Will single-user mode affect my databases?

No data is changed by starting in single-user mode. It only limits connections to one, so plan the window when users are offline.

Why does SQL Server Agent interfere with single-user mode?

Agent starts automatically and can take the single available connection. Stop it before starting the instance with -m.

Where can I see why the request was rejected?

The ERRORLOG in the instance's Log folder usually records the reason, including the parameter or value that failed validation.

Do I need to reinstall SQL Server to clear error 1438?

No. Reinstalling is rarely necessary. Correct the setting in single-user mode or SQL Server Configuration Manager, then restart the service.