首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

在使用SQL server 连接JAVA时。报出这样的错。求解解决方案

2012-04-16 
在使用SQL server 连接JAVA时。报出这样的错。。。求解The TCP/IP connection to the host localhost, port 14

在使用SQL server 连接JAVA时。报出这样的错。。。求解
The TCP/IP connection to the host localhost, port 1433 has failed. Error: Connection refused: connect. Please verify the connection properties and check that a SQL Server instance is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.

[解决办法]
连接代码应该是有问题,特别是你的连接串
[解决办法]
去数据库看看你的SQLServer 端口号是不是默认端口1433 打开TCP/IP协议
[解决办法]
sqlserver有个tcp/ip服务没开
[解决办法]
检查下你的端口号吧,看是不是1433.TCP/IP要开启,然后重启电脑再试一次吧

热点排行