User 'sa 'Login Failed

Source: Internet
Author: User
Tags stack trace management studio
A connection has been established with the server, but an error occurs during logon. (Provider: Shared Memory provider, error: 0-there is no process on the other end of the MPs queue .)
User 'sa 'Login Failed. This user is not associated with a trusted SQL Server connection.
Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception details: System. Data. SqlClient. SqlException: User 'sa 'Logon Failed. This user is not associated with a trusted SQL Server connection.

Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception details: System. Data. SqlClient. SqlException: A connection has been established with the server, but an error occurs during logon. (Provider: Shared Memory provider, error: 0-there is no process on the other end of the MPs queue .)

Source error:

Row 35 :}
Row 36: if (con. State = System. Data. ConnectionState. Closed)
Row 37: con. Open ();
Row 38:
Row 39 :}

Source File: c: \ Inetpub \ wwwroot \ HomeMS \ App_Code \ DataBase. cs line: 37

Stack trace:
[SqlException (0x80131904): A connection has been established with the server, but an error occurs during logon. (Provider: Shared Memory provider, error: 0-there is no process on the other end of the MPs queue.)]
System. Data. SqlClient. SqlInternalConnection. OnError (SqlException exception, Boolean breakConnection) + 173
......................................
System. Web. UI. Control. LoadRecursive () + 49
System. Web. UI. Page. ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) + 3750

The solution is as follows:

First, select the SERVER (right-click)> Properties> Security> SERVER Authentication To "SQL SERVER and WINDOWS Authentication mode"
Next, expand "security"-> login name-> select the SA Login Account (right-click)-> Status-> login to enable

Solution:
1. log on to Management Studio as a Windows user, right-click the Server and select properties, and change the security options to SQL Server and Windows authentication modes.
2. Set attributes of the sa user in security-> logon name. The "Logon" field is displayed in the Status column. By default, this field is disabled and enabled.
3. Open the configuration tool> "SQL Server peripheral application configurator", and then select "service and connected peripheral application configurator ".
Choose remote connection> Local Connection and remote connection> only use TCP/IP and click "application ".
Then select the service to stop the SQLEXPRESS service and restart it.

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.