Solve the problem of one SQL connection failure

Source: Internet
Author: User

A long time out of environment, a newly installed Windows Server 2008 R2 environment, foundProgramCannot connect to SQL Server.

 

1. Failed to connect with test. udl.

 

2. Capture the Network Package and check that the three handshakes are successful. The reason why SQL server returns the network package.

458 7:53:48 am 7/12/2012 33.3707944 system 10.4.2.5 10.4.2.7 smb2 smb2: R-nt status: System-error, code = (22) status_more_processing_required Session Setup (0x1 ), sessionflags = 0x0 {smbovertcp: 12, TCP: 11, IPv4: 9}

3. Therefore, add the Telnet client to the feature of Windows Server 2008 R2 and find that port 1433 of SQL Server is disconnected.

 

4. Remotely connect to the SQL Server and run the netstat-ano command to check whether port 1433 is being monitored by the SQL server.

The process for listening to 4288 is sqlservr.exe, and the process ID is.

 

5. Open the configuration of Windows Firewall and click Advanced Settings.

Choose inbound rules-> new rules-> port-> TCP: 1433-> allow the connection-> domain, private, public-> name: SQL 1433

Save.

 

6. Return to the client machine and telnet the SQL again. The SQL connection is successful.

 

Summary

==============================

In this troubleshooting, we used the Telnet and netstat commands.

The udl file is also used to test the connection to the SQL service.

To solve the problem, we created a Windows Firewall rule that allows other machines to connect to the SQL service.

 

This is a typical troubleshooting of SQL connection. I hope you will be helpful.

 

Thank you

============================

Thank you for your help.

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.