SqlServer2005 连接不上 终极解决方法

本文介绍了解决SQL Server数据库连接失败的具体步骤。当尝试连接到SQL Server时如果遇到错误提示“Connection refused”,可以通过调整SqlServer配置管理器中的TCP/IP端口设置来解决此问题。

x项目运行后控制台报错如下:

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 14303 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 配置管理器---》找的SqlServer 2005网络配置---》双击tcp/ip--选择IP地址---》拉到底---》IPALL 中动态端口设置为1433  完美解决



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值