2

Jetbrains 0xDBe 是否支持使用 Windows 身份验证登录 SQL Server?

我正在使用运行 OS X Mavericks 的 Mac 并尝试通过 VPN 连接到我们的公司临时数据库。那里有很多问题...

现在我的网址是这样的:

jdbc:sqlserver://10.11.222.333:12345

我尝试设置integratedSecuritytrue,还尝试在 URL 中指定域:

jdbc:sqlserver://10.11.222.333:12345;domain=MyDomain

无论如何,当我测试连接时,它会超时并出现以下错误:

Connection to Staging failed
java.sql.SQLException: The TCP/IP connection to the host 10.11.222.333, port 12345 has failed. Error: "connect timed out. 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.".
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)
    at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:241)
    at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2243)
    at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:491)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1309)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)
    at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)
    in RemoteDriverImpl.connect(RemoteDriverImpl.java:27)
    in RemoteUtil.access$100(RemoteUtil.java:36)
    in RemoteUtil$RemoteInvocationHandler.invoke(RemoteUtil.java:227)
    at com.sun.proxy.$Proxy84.connect(Unknown Source)
    in LocalDataSource.getConnection(LocalDataSource.java:240)

有什么建议么?

4

1 回答 1

4

我遇到了同样的问题,但最终通过将域添加到“管理数据源”窗口中的 jTds 驱动程序高级设置找到了解决方法。

然后使用以下连接字符串:

jdbc:jtds:sqlserver://<SERVER>:<PORT>;integratedSecurity=true;authenticationScheme=JavaKerberos

或用于连接到命名实例:

jdbc:jtds:sqlserver://<SERVER>;instance=<NAMED_INSTANCE>;integratedSecurity=true;authenticationScheme=JavaKerberos
于 2015-03-12T01:31:28.280 回答