"SQL Server does not allow remote connections" error Solution

Source: Internet
Author: User
Tags dnn
This error occurs when DNN 4.8 is installed.

Connection Error (s ):
Index #:0
Source:. Net SqlClient Data Provider
Class:20
Number:53
Message:
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by
Fact that under the default settings SQL Server does not allow remote
Connections. (provider: Named Pipes Provider, error: 40-cocould not
Open a connection to SQL Server)

Because the default settings for SQL Server 2005 Express Edition and SQL Server 2005 Developer Edition do not allow remote connections, refer to the MSDN documentation to change the settings: http://support.microsoft.com/default.aspx? Scid = kb; EN-US; 914277

I installed the Personal version of SQL 2000 and SQL 2005 Express (automatically installed with VS) on my machine. I am using the Personal version of SQL 2000. This issue should not exist. After some research, I found the answer.

Before SQL 2005 Express is installed, there is only one SQL Server on my machine. I usually use local in the connection string to specify the local SQL 2000 Personal version. After the Express version is installed, there will be two SQL instances on the machine.

One is LAND001 (my computer name) and the other is LAND001 \ SQLEXPRESS. At this time, if you still use local to refer to the SQL Server Personal version, DNN installation will not look for the Personal version, but find the Express version.

Solution: Use the SQL Instance name in the connection string to accurately specify the SQL Server to be used, such as LAND001.

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.