Solution to SQL Server 2005 error when establishing a connection to the server

Source: Internet
Author: User
Tags port number firewall

When you open a newly installed web site, the following error is displayed:

An error occurred while establishing a connection to the server. When you connect to SQL Server 2005, this failure may be caused by SQL Server not allowing remote connections under the default settings. (Provider:sql network interface, error:26-error locating the specified server/instance)

Solution:

1. Select "TCP/IP only" on the "Perimeter Configuration" tool.

2. Then from the "Configuration Manager" to find "... 2005 Network Configuration "->" network protocol-> "TCP/IP" to see the port number inside, the default is 1433, you can change into your favorite.

3. If there is a firewall, but also in the corresponding firewall add an exception, such as the default of 1433 so you can connect remotely.

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.