Network-related errors occur when establishes a connection.

Source: Internet
Author: User
When connecting to the SQLServer2000 database, the following error occurs: Network-related or instance-specific errors occur when establishing a connection with SQLServer. The server is not found or cannot be accessed. Verify that the Instance name is correct and SQLServer is configured to allow remote connection. (Provider: named pipeline provider, error: 40

When connecting to the SQL Server 2000 database, the following error occurs: a network-related or instance-specific error occurs when you establish a connection with SQL Server. The server is not found or cannot be accessed. Verify that the Instance name is correct and SQL Server is configured to allow remote connection. (Provider: named pipeline provider, error: 40-None

The following error occurs when connecting to the SQL Server 2000 database:

Network-related or instance-specific errors occur when you establish a connection with SQL Server. The server is not found or cannot be accessed. Verify that the Instance name is correct and SQL Server is configured to allow remote connection. (Provider: named pipeline provider, error: 40-unable to open the connection to SQL Server)

An error is prompted when you connect to the SQL Server 2005 database! The error message is as follows!

An error occurred while establishing a connection with the server. When you connect to SQL Server 2005, the default setting does not allow remote connection to SQL Server may cause this failure. (Provider: named pipeline provider, error: 40-unable to open the connection to SQL Server)

I installed SQL Server2000 first and then SQL Server2005. There are many solutions on the Internet!

The following is a list:

1. In the Start menu, there is an SQL Server2005 peripheral program configurator under SQL Server2005 in the program. Select the peripheral configurator of the service and connection, and select remote control in the database engine, change the local connection and remote connection to use TCP/IP and named pipes at the same time! Save. Close the connection to the database server and click "reconnect!

2. The Data Source in the database connection string in the configuration file web. config uses the name of the local server. Do not use an Ip address, loacl, or.

Example:

3. Delete the default database link string in the IIS configuration, because after SQL Server2005 is installed, the default connection is 2005.

My computer, management, default website in iis configuration, right-click to view properties, select your version for asp.net version, then, delete the default string link in edit configuration and edit global configuration!

Modify and edit global configurations

If the red circle contains the default database connection string, remove it!

4. Install SQL Server patches.

This prompt is displayed when you view the database logs!

You have known security vulnerabilities when using Microsoft SQL Server 2000 or Microsoft SQL Server 2000 Desktop Engine (also known as MSDE) and Microsoft Windows Server 2003. To reduce computer attacks by some viruses, Microsoft SQL Server 2000, MSDE or both of the TCP/IP and UDP network ports are disabled. To enable these ports, you must install either a patch or the latest service package for Microsoft SQL Server 2000 or MSDE.

Patch SP4 for SQL Server 2000

Download the patch and add it!

5. Modify the remote connection port of SQL Server

When SQL Server2000 is installed and SQL Server2005 is installed, the latter changes the remote connection port of SQL Server2000 to 1433. When I checked it, it was changed to port 1058.

Change it to 1433!

Start Menu. There is a server network tool under SQL Server2000 in the program. Select TCP/IP and click Properties to edit its port

Select TCP/IP to modify its attributes

Set the default port to 1433

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.