Set to allow SQL Server login

Source: Internet
Author: User
Tags mssqlserver

Set to allow SQL Server login

1. log in with the window method, select the database instance, right-click and select Properties-security: Change the server authentication option from "window Authentication Mode" to "sqlserver and window Authentication mode ". Click OK to close the current object Resource Manager.
2. Log On again using window verification. In the tree structure on the left, select the "Security" option under "Database"-login name-Sa, right-click Properties -- enter the SA password you want to set in "sqlserver authentication", click status, and select Grant and enable.
3. Restart the sqlserver service. Remember, it is to restart the service, not to disable sqlserver2005 and then enable it.
If you do not restart the sqlserver service and log in directly with SA, the following error is reported: "User 'sa 'Logon Failed. This user is not associated with a trusted SQL server connection ".
How to restart sqlserver service: go to window service, find "SQL Server (MSSQLServer)", and select restart. Alternatively, enter: net stop MSSQLServer at run time, And then: Net start MSSQLServer.

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.