小编Man*_*rba的帖子

无法使用 JDBC 连接到 SQL Server

我在使用 Netbeans 中的 JDBC 驱动程序连接到数据库服务器时遇到问题。我已经尝试了一切,启用 TCP/IP,打开端口,我已经按照在线教程进行操作。它就是行不通。

这是我在控制台中收到的错误消息:

Information: Error: The TCP / IP connection could not be made to the MANUEL-PC host, port 1433. Error: "Connection refused: connect Verify the connection properties, check that there is an instance of SQL Server running on the host and accepting TCP / IP connections on the port and verify that there is no firewall blocking TCP connections on the port. "

我们正在使用的课程开始...

 public class DBPosteo
{
    private final String URL ="jdbc:sqlserver://MANUEL-PC\\SQLEXPRESS:1433;databaseName=DLC_MotorDeBusqueda;integratedSecurity=true"; 


    private Connection …
Run Code Online (Sandbox Code Playgroud)

java sql-server netbeans jdbc

1
推荐指数
1
解决办法
2845
查看次数

标签 统计

java ×1

jdbc ×1

netbeans ×1

sql-server ×1