我继续得到这个错误.我尝试了stackoverflow(下面)中的一个解决方案,它对我不起作用 - 连接到SQL服务器时出现SQL异常
我尝试通过使用链接来允许Windows防火墙中的端口1433,这也不起作用.请参阅"在Windows防火墙中打开TCP访问端口"一节 http://msdn.microsoft.com/en-us/library/ms175043.aspx
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP
connection to the host localhost, port 1433 has failed. Error:
"Connection refused: connect. Verify the connection properties.
Make sure that an instance of SQL Server is running on the host
and accepting TCP/IP connections at the port. Make sure that TCP
connections to the port are not blocked by a firewall.
Run Code Online (Sandbox Code Playgroud)
请帮我解决这个问题.
谢谢