MSSQL 2008 error message: failed to log on to sa

Source: Internet
Author: User
Tags mssql management studio


After logging on to the database in Windows, run the following command:

The code is as follows: Copy code
EXEC sp_password null, "123456", "sa"
Go
Alter LOGIN sa ENABLE

The password is successfully modified!
Note: If the statement fails, restart the service and run the statement again.

 

Problem 1: 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. Log on to management studio as a windows user, click site properties, and change the security options to windows and SQL mixed identity logon.

Problem 2: When you log on to SQL 2005 Enterprise Manager, windows Authentication is successful. However, when you log on using SQL server authentication, that is, the sa user name, the following error occurs: "provider: shared memory provider, error: 0-there is no process on the other end of the MPs queue ". Modify the settings as follows: since windows Authentication is successful, log on to the manager as this identity first, and then there is a server authentication in the server attribute, set to SQL server and windows authentication mode. Next, set attributes of the sa user in "security"> "logon". The "logon" field is displayed in the "status" column. The attribute is disabled by default and enabled. After the modification, restart the Enterprise Manager to log on with the sa user name. The problem persists.

After thinking for half a day, I had to restart the service after setting "SQL server and windows authentication mode. After the settings were completed, the enterprise manager was restarted and its service was not restarted. Therefore, find "SQL Server peripheral application configurator" and select "service and connection peripheral application configurator". Stop SQL server and start it again. This problem should be solved. Problem 3: 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 .) Server error in the "/cs" application. 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 .) if this error occurs, you can find a lot of information on the internet and there is no good solution. Finally, open the web. config

The code is as follows: Copy code
<Add key = "SiteSqlServer" value = "server = (local); uid = csuser; pwd = xxx; Trusted_Connection = yes; database = communityserver"/>

Change

The code is as follows: Copy code

<Add key = "SiteSqlServer" value = "Data Source =.; Initial Catalog = communityserver; Persist Security Info = True; User ID = csuser; Password = xxx"/>

 

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.