SQL Server Logon Connection failed

Source: Internet
Author: User
Tags microsoft sql server

The problem is described as follows:

-------YYC

A network-related or specific and instance error occurred while establishing a connection to SQL Server. The server was not found or could not be accessed. Verify that the instance name is correct and that SQL Server is configured to allow remote links. (Provide: Named pipe provider, error:40-cannot open a connection to SQL Server) (Microsoft SQL Server, error: 2)

I have just logged in to connect SQL Server encountered the above problems, in the synthesis of various online solutions, finally successfully resolved the problem, and finishing the following experience for later use.

Step one: Open SQL Server Configuration Manager

Double-click SQL Server Service

Step two: If a list of services appears after double-clicking (my case does not appear), locate SQL Server (MSSQLSERVER) directly, and then log on after you start the service.

If the service does not start. You can find the service in your computer (right click)-administration-Services and programs, click View Properties, select Local System account in the Login tab, and then start the service after selecting it.

(If the "Remote procedure call failed" occurs when step two starts without a list of service lists, proceed to step three)

Step three: This occurs because the Microsoft SQL Server 2013 Express LocalDB Service is automatically installed when Visual Studio 2013 or version 2012 is installed. Causes the original SQL2008 not to work properly.

The solution is simple, in Control Panel-programs and features, find "Microsoft SQL Server 2013 Express LocalDB" and uninstall it directly, and then open SQL Server Configuration Manager, it will show normal use.

Fix it and go back to step two.

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.