Cannot Login to SQL Server using Administrator account

Source: Internet
Author: User
Tags mssqlserver management studio sql management studio sql server management sql server management studio

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.