After the installing SQL Server on a machine, it happens the IT-connect or disconnect-to-domain. The Administrator account can no longer access the database engine. The below steps allow for regain access to the SQL Server ...
1.Stop SQL service:on the command line type:net Stop MSSQLServer
2.Start the SQL Server in Management mode:on the command line type:net Start mssqlserver/m
3.Open the SQL Server Management Studio, cancel the login dialog
4.Open new SQL Server engine query Window:from the menu, Click file->new->database engine query
5.Enable sa account if not enabled:in the query window type:alter login SA Enable
6. Set The password of the SA account:alter login sa with password= ' my password '
7.Stop the SQL Server from the command line:net Stop MSSQlServer
8.Start SQL Service from the command line:net Start MSSQLServer
9.Start the SQL Management Studio and connect to the server using SA account
10.ADD you domain administrator as sysadmin
11.Disable the SA account when you finish
Cannot Login to SQL Server using Administrator account