The TCP/IP connection to the host, port 1433 has failed

后端 未结 1 698
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-27 12:54

I am new to JDBC connections and I am very confused. I have enable TCP/IP and Named Pipes and in TCP/IP -> IP Adresses I have set TCP port to 1433 and I have restarted the serve

1条回答
  •  伪装坚强ぢ
    2021-01-27 13:36

    Copy computer name :cmd.exe -> hostname

    or

    Right Click on Start then click on System and copy the Computer Name

    URL should be:

    String url = "jdbc:sqlserver://\\SQLFULL:1433;databaseName=BA_ELTRUN;";
    
    Connection conn = DriverManager.getConnection(url,"",""):
    

    0 讨论(0)
提交回复
热议问题