SQL Server error 920 means the instance cannot be started because the service account or login is not a member of the sysadmin role, so you must restore sysadmin access before the database engine will come online. The fix is to start SQL Server in single-user mode, connect as a local administrator, and add the required login back into the sysadmin role. This guide walks through that recovery process step by step.

What You'll Need

  • Local administrator rights on the Windows server that hosts SQL Server.
  • The SQL Server service name (for example MSSQLSERVER for the default instance, or MSSQL$InstanceName for a named instance).
  • Access to SQL Server Configuration Manager or Services (services.msc).
  • The sqlcmd utility, installed with SQL Server or the SQL Server command-line tools.
  • A recent backup of the system databases, if one exists, as a safety net before making changes.

Step-by-Step

  1. Stop the SQL Server service. Open Services (services.msc), find the SQL Server service for your instance, right-click it, and choose Stop. If it will not stop, use SQL Server Configuration Manager > SQL Server Services, right-click the service, and stop it there. Labels in Configuration Manager can differ slightly by version, so look for the SQL Server Services node.
  2. Start SQL Server in single-user mode. The safest method is from an elevated command prompt. Run net start MSSQLSERVER /m"SQLCMD" for a default instance, or net start MSSQL$InstanceName /m"SQLCMD" for a named instance. The /m"SQLCMD" parameter restricts connections to the sqlcmd program only, which prevents other applications from grabbing the single connection before you do.
  3. Connect with sqlcmd as a local administrator. Open a new elevated command prompt and run sqlcmd -S .\InstanceName -E. For a default instance, use sqlcmd -S . -E. The -E flag uses Windows authentication. Because SQL Server is in single-user mode, local administrators can connect even if their login is not yet a sysadmin.
  4. Check who is in the sysadmin role. At the sqlcmd prompt, run SELECT name FROM sys.server_principals WHERE IS_SRVROLEMEMBER('sysadmin', name) = 1; to see which logins currently have sysadmin rights. If the list is empty or missing the account you need, continue to the next step.
  5. Add your login to the sysadmin role. If your Windows account already has a login, run ALTER SERVER ROLE sysadmin ADD MEMBER [Domain\YourAccount];. If the login does not exist, create it first with CREATE LOGIN [Domain\YourAccount] FROM WINDOWS; and then add it to the role. Replace the bracketed value with your actual Windows account.
  6. Verify the change. Run SELECT IS_SRVROLEMEMBER('sysadmin');. A result of 1 confirms your login now has sysadmin rights. You can also re-run the query from step 4 to see the updated list.
  7. Exit sqlcmd and restart SQL Server normally. Type EXIT to leave sqlcmd. Then stop the service and start it again without the /m parameter, either from Services or with net stop MSSQLSERVER followed by net start MSSQLSERVER. The instance should now start without error 920.
  8. Confirm the fix. Connect with SQL Server Management Studio or sqlcmd using your normal login and run a simple query such as SELECT @@VERSION;. If it returns a result, the instance is healthy and the sysadmin membership is working.

Common Mistakes

  • Starting single-user mode without the /m"SQLCMD" filter. Any application or service can then take the single connection, leaving you unable to log in. Always restrict it to sqlcmd.
  • Connecting with the wrong account. Single-user mode grants access to members of the local Administrators group, but only if you launch the command prompt elevated. A non-elevated prompt may fail to connect.
  • Forgetting to stop the service first. The /m parameter only takes effect when the service starts. If SQL Server is already running, the parameter is ignored.
  • Adding the login to the wrong role. Error 920 is about the sysadmin role specifically. Adding the login to db_owner or securityadmin does not resolve it.
  • Leaving the instance in single-user mode. If you forget to restart normally, only one connection is allowed and normal applications will fail. Always complete the final restart step.

Tips

  • Keep at least one known sysadmin login (preferably a dedicated account, not a personal one) documented and tested, so a future lockout is easier to resolve.
  • Use sqlcmd -S .\InstanceName -E -A only if the Dedicated Administrator Connection is needed; the -A flag connects over DAC, which can help when the instance is unresponsive, but it is not required for error 920 recovery.
  • If you are unsure of the exact instance name, check SQL Server Configuration Manager under SQL Server Services; the service name shows the instance.
  • Record the commands you use in a change log. Future you will thank present you when the same issue appears on another instance.

Troubleshooting

If sqlcmd reports that it cannot connect, confirm the service is actually running in single-user mode. Check the SQL Server error log (in SQL Server Management Studio under Management > SQL Server Logs, or the file in the LOG folder of the instance) for a line stating that the instance started in single-user mode. If another process grabbed the connection, stop the service and restart with the /m"SQLCMD" parameter again.

If ALTER SERVER ROLE fails with a permissions error, you are not connected as a sysadmin. Re-check that you launched the command prompt as administrator and that you are using the correct instance name. If the login already exists but is disabled, enable it with ALTER LOGIN [Domain\YourAccount] ENABLE; before adding it to the role.

If the service will not start even in single-user mode, the problem may be broader than role membership, such as a corrupted master database or a permissions issue on the data files. In that case, restore the master database from backup or rebuild the system databases using the SQL Server setup media, then repeat the sysadmin recovery steps. Always take a backup before rebuilding system databases.

Frequently Asked Questions

What causes SQL Server error 920?

The error occurs when the SQL Server service starts but no login has sysadmin rights, so the instance cannot complete startup. It often follows removal of the built-in administrators group or a change to service account permissions.

Can I fix error 920 without restarting SQL Server?

No. The instance must be started in single-user mode to allow an administrator to connect and restore sysadmin membership. A normal restart without the /m parameter will not help.

Does single-user mode affect other users?

Yes. While the instance is in single-user mode, only one connection is allowed. Plan the fix during a maintenance window and restart normally as soon as you are done.

What if I don't know the instance name?

Open SQL Server Configuration Manager and look under SQL Server Services. The service name for a named instance appears as SQL Server (INSTANCE), where INSTANCE is the instance name.

Will this fix work for Azure SQL Database?

No. Azure SQL Database is a managed service and does not expose single-user mode or server-level role membership in the same way. Error 920 is specific to on-premises or IaaS SQL Server instances.

How do I prevent error 920 from happening again?

Document at least one sysadmin login, avoid removing the built-in administrators group without adding an alternative, and test administrative access after any security change.