logo
SQL Server Access SQL Server in Single-User Mode

How to Set SQL Server Access in Single-User Mode

By Hally | Last Updated

This passage introduces how to access SQL Server in Single User Mode, when cannot access SQL Server using Windows Authentication Mode.

Steps to set SQL Server access in Single-User Mode:

Step 1: Launch SQL Server Configuration Manager and stop SQL Server instance.

stop SQL Server services

Step 2: Right-click on SQL Server instance and select Properties.

open SQL Server instance properties setting window

Step 3: Set SQL Server startup mode in Properties window.

  • In SQL Server 2014 or 2012, click Startup Parameters tab, enter -m and click Add.
  • While in SQL Server 2008(R2) or an earlier version, you have to click Advanced tab and add -m before existing value in Startup Parameters box, without any spaces.

set SQL Server startup in single-user mode

warning for taking SQL Server startup changes effective

Step 4: Save changes and restart the SQL Server instance. This will start SQL Server in single-user mode.

restart SQL Server instance

Once you could access SQL Server in single-user mode, new login can be created and added to SA server role with command prompt. So login SQL Server successfully again with SA account will be no problematic even after SA password forgot and Windows authentication is unavailable.

cannot access SQL Server instance in single-user mode

But if you cannot access SQL Server in single-user mode or cannot log on Windows as administrator, the startup setting would not do help you. In this situation, you would need to use SQL Password Genius which could easily unlock SA account or reset SA password offline.

Related Articles: