Jetbrains 0xDBe:使用Windows身份验证连接到SQL Server?

时间:2015-02-17 19:44:55

标签: macos sql-server-2012 windows-authentication osx-mavericks datagrip

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

我正在使用运行OS X Mavericks的Mac并尝试通过VPN连接到我们的企业登台数据库。那里有很多错误......

现在我的网址如下:

jdbc:sqlserver://10.11.222.333:12345

我已尝试将integratedSecurity设置为true,并尝试在网址中指定域名:

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)

有什么建议吗?

1 个答案:

答案 0 :(得分:3)

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

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

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

或连接到命名实例:

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