Client in LAN cannot connect to SQL Server using machine name

Source: Internet
Author: User

In production environments, it is sometimes required to use machine names to connect to SQL Server servers, but sometimes it can't be connected for a long time.

For this issue to make a short record, to prevent later on their own can not remember the reason, but also convenient for other peers!

Needless to say, as an old guy who worked for years, the following work is sure to be ensured:

The "Named pipes" protocol on the SQL Server server side is turned on!

The SQL Server server side of the network card NetBIOS resolution function is also turned on!

The classic 1433 port used on the SQL Server server is an exception to the firewall!

You have ensured that the client uses IP to connect to the SQL Server server!

After releasing the ICMPV4 firewall exception on the server, ping IP is no problem, but Ping machine name is not! Don't tell me to set up the Hosts file, this thing I do not say it can not do, even if it does not work I do, because that will tie the IP, then I might as well directly with ip!

Check to find out is the firewall in the "File and Printer Sharing (nb-name-in)" Inbound rules are not released , it is specifically to control the NetBIOS resolution to use UDP 137 port;

Hidden deep, record, the following is the effect of the ping before and after the release, of course, the SQL Server client can also be connected by the machine name!

Client in LAN cannot connect to SQL Server using machine name

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.