Sometimes you'll need to login into SQL Server with DAC (Dedicated Administrator Connection) mode. Here is the quick way to do that :
1. Stop SQLServer(MSSQLServer) service.
2. Right click in the SQLServer(MSSQLServer) service and choose properties.
3. When the service is stop, you could insert service parameter in the properties page. In this case you should fill the parameter with '
-m'.
4. Start the service again without closing the properties page.
5. Open SQL Server Management Studio, just press cancel when it ask for login information.
6. Choose 'New Query' button, or by pressing 'Ctrl+N'
7. It should ask you for login information again, fill it with your 'sa' account. but in server name your should fill with this format :
ADMIN:[YourServerName]
8. Then press OK.
9. You should now in DAC Mode