Skip Ribbon Commands
Skip to main content

Add sysadmin role to SQL manually

  1. Open SQL Server Configuration Manager
  2. Stop all SQL Server Services
  3. Open a command prompt and change directories into the SQL instance path\MSSQL\Binn
  4. Start SQL by typing: sqlservr.exe -m
  5. Open a second command prompt and change directories into SQL Tools\Binn
  6. Connect to SQL by typing sqlcmd.exe -S (IP Address of Instance) -E
  7. Type: exec sp_addsrvrolemember @loginame='DOMAIN\user',@rolename='sysadmin'
  8. Type: go
  9. Type: exit
  10. Switch to the SQL instance and press Ctrl-C to stop the instance
  11. Restart all services and connect with SQL Management Studio