SQL Server Logon Failure issue

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

1. Start SQL Server Management Studioand you will see

2, there is an authentication. There are two options in this authentication drop-down list:

Windows authentication and SQL Server authentication .

What is the difference between them:

Windows Authentication means: You can log in using the user name and password of your computer's Windows system. If your computer does not have a password set, then you do not need to enter a user name and password, directly click the connection can log in.

We typically use the second type of authentication: SQL Server authentication . Because, if we later use the database on other computers, we can also use. (How we use Windows authentication , its disadvantage is that portability is not strong.) )

It is most reasonable to log in with a user name and password created with SQL Server .

3. Select authentication First:Windows authentication . Then click Connect .

Then choose: Security -- login name . Right-click login , select the new login name inside

Select New SQL Server authentication and enter a login name and password

We must remove the check box with the mandatory password expiration (X)

4, to the server, click the right mouse button, select the properties inside

5, enter the security . As you can see, the default in Server Authentication is the Windows authentication Mode , which is changed to SQL Server and Windows Authentication mode. shutdown software Restart will not take effect

6, Control Panel, management tools, services, locate the SQL Server Browser Service, change the startup type to Automatic, and start

SQL Server Logon Failure issue

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.