Home > database >  Essentially a JDBC connection problem, navicat connection is normal, JDBC suggest a timeout, how to
Essentially a JDBC connection problem, navicat connection is normal, JDBC suggest a timeout, how to

Time:09-25

Essentially a complete version:
Microsoft SQL Server 2012-11.0.2100.60 (X64)
Feb 10, 2012 19:39:15
Copyright (c) Microsoft Corporation
Enterprise Edition (64 - bit) on Windows NT 6.2 & lt; X64 & gt; : (Build 9200) (Hypervisor)

JDBC jar package version:
Com. Microsoft. Sqlserver
MSSQL - jdbc
6.2.1. Jre8/7.2.1. Jre8/8.2.1 jre8 & lt;/version>

Using navicat connection is normal, bare using Java JDBC, classForName connection occurs:

The TCP/IP connection to The host 192.168.1.158, port 1433 has failed.
StateCode: 08 s01

Read online some article said the TCP/IP,
If is the problem, why can navicat connection? In addition, if does not open, what's the solution? Because the database server is not controlled by me,
If not, what's the solution?
  • Related