An error occurred while connecting to SQL Server through port 1433 of JDBC.

Source: Internet
Author: User

When I use intellij idea to connect to SQL Server 2005 through sqljdbc4.jar today, port 1433 cannot be connected.

Check whether the TCP port 1433 is listening and the firewall is blocked.

1. Enter the netstat-An command in the DOS console after "cmd" and check whether port 1433 is in the listening status. If not, perform step 4;

2. TCP/IP configuration:

2. 1. Enable TCP/IP under SQL Server Configuration Manager> SQL SERVER network configuration> MSSQLServer protocol;

2. Double-click TCP/IP. In the displayed window, click the "ip address" tab. Multiple IP addresses and numbers are listed below,

A. Find the corresponding IP address and configure it as follows:

Dynamic TCP port: left empty

TCP port: 1433

Activity: Yes

Enabled: Yes

B. Configure ipall as follows:

Dynamic TCP port: left empty

TCP port: 1433

Restart SQL Server Browser;

3. After all configurations are complete, restart or start the ms SQL Server service.

4. Activate TCP 1433 in the firewall you are using.

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.