SQL Server数据源无法连接

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host DESKTOP-J58GNR6, port 1433 has failed. Error: “null. Verify the connection properties. Make sure that an instance of SQL Server is
SQL Server本地数据库的数据源无法获取Schema。
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.”


这是报错内容。
我已经卡在这好多天了,百度上查了很多解决方法都没用。


1433端口的防火墙也设置了
1684292272(1)
数据库我自己连过是可以连的,登录名密码是对的
这到底是什么情况,有人能解答一下吗

咱们是多少版本的 SQLServer 呢?

DESKTOP-J58GNR6 是不是这个服务地址无法被你的 DE 服务识别啊 你 DE和你 SQLServer理论上应该不是部署在一台上吧 从这个思路上试试 比如在 DE 服务器上 telnet 下这个服务地址看能通不 改成 IP 地址啥的

2019.15.0.2000.5

DESKTOP-J58GNR6 应该是你安装 SQLserver 主机的主机名。把它修改成你的主机的 IP 地址。
因为 DataEase 需要通过 IP 地址来链接你的 SQLserver 服务器,通常我们会把主机名添加到 DNS 服务器中,这样在请求时可以通过 DNS 服务器将主机名解析为 IP 地址。我猜测你没有 DNS 服务器,所以需要填写 IP 地址,并且需要在主机上关闭防火墙或者放开 1433 端口。

1684304426(1)
我换成了ip地址,但还是报错。
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 192.168.56.1, port 1433 has failed. Error: “Connection refused (Connection refused). 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.”.

防火墙设置过1433端口,telnet过,是开放的

telnet过1433端口是通的,但是直接连接DESKTOP-J58GNR6主机不通.
1684306316(1)

telnet 需要在运行 DataEase 服务器上测试执行,最好是在容器中执行,可以在 DataEase 服务器上执行以下命令检查网络连通性:
docker exec dataease nc -zv IP 端口

image

楼主,你的搞好了吗?我现在添加SQLServer还要填一个SCHEMA,但是填不上怎么办?

我也是这个问题,一直没有解决,无法正常使用。看来只能用其他数据库。

现在解决了吗?是dataease没法用SQL serve数据源?

还没有,不过官方承诺下一个版本解决。

另外,我发现这个有可能是数据库版本问题,我是sqlserver2012版本

很遗憾,官方新版本也没有解决此问题。

在数据源这里接入2014版本SQL server没有出现问题