Two instances of SQL Server in the same domain cannot connect

Source: Internet
Author: User

Two instances of SQL Server in the same domain cannot connect, and the reported error message is as follows:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or is not accessible. Verify The instance name is correct and that SQL Server is configured to allow remote connections. (provider:named Pipes provider, error:40-could not open a connection to SQL Server) (. Net SqlClient Data Provider)

The cause of the error is that the remote server's firewall does not open port 1433

Port 1433 is used for remote connections and is the default port for SQL Server, and the SQL Server service uses two ports: TCP-1433, UDP-1434. 1433 of these are used for external service to SQL Server, and 1434 is used to return to the requestor which TCP/IP port the SQL Server uses.

Solution

Step1, open firewall,advanced Settings

Step2,new Inbound Rule, create a port with TCP port number 1433

Inbound rules explicitly defines a rule that allows or blocks access to the local server

Step3, view the inbound Rule created in firewall

Two instances of SQL Server in the same domain cannot connect

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.