Three of the most common errors in SQL Server connections

Source: Internet
Author: User
Tags firewall

One. " SQL Server does not exist or access is denied "

This is the most complex, the cause of the error is more, need to check the aspect also more.

Generally speaking, there are several possibilities:

1,sql server name or IP address is spelled incorrectly

2, server-side network configuration is incorrect

3, the client network configuration is incorrect

To solve this problem, we generally follow the steps below to find out the cause of the error step by step.

============= First, check the network physical connection =============

Ping < server IP address/server name >

If ping < server IP address > is unsuccessful, indicating that there is a problem with the physical connection, check hardware devices such as NIC, HUB, router, etc.

Another possibility is that the firewall software is installed between the client and the server, such as ISA server. Firewall software may mask responses to ping,telnet, etc.

So when checking connectivity problems, we have to temporarily shut down the firewall software, or open all the blocked ports.

Ping < server name > failed if ping < server IP address > success

If there is a problem with name resolution, check to see if the DNS service is normal.

Sometimes the client and the server are not in the same LAN, it is very likely that the server name can not be used directly to identify the server, at this time we could use the Hosts file for name resolution,

The specific methods are:

1. Use Notepad to open the Hosts file (usually located in c:winntsystem32driversetc).

Add a corresponding record for the IP address and server name, such as:

172.168.10.24 MyServer

2. Or configure in SQL Server's client Network Utility, which is explained in detail later.

============= second, use the Telnet command to check the working status of the SQL Server server =============

Telnet < server IP address > 1433

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.