JDBC: Simple MSSql connection example not working

后端 未结 8 1545
无人共我
无人共我 2020-12-08 10:29

I am learning Java and need to just run something simple to retrieve some data from MSSQL via JDBC. The example in my book doesn\'t work (but it is several years old) and th

8条回答
  •  遥遥无期
    2020-12-08 10:57

    Thanks Finally it's working. If it shows below message as error,

     Verify the server and instance names and check that no firewall is blocking
     UDP traffic to port 1434. For SQL Server 2005 or later,
     verify that the SQL Server Browser Service is running on the host
    

    Please enable Sql Server Browser by,

    Start > Control Panel > Systems & Security > Administrative tools > Services

    Select SQL Server Browser Right click and select properties.

    Set start type as Automatic. Click on Apply > click on start > click on Ok

    Make Sure your IPALL TCP Address is - 1433 !

提交回复
热议问题