- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
嘿,我无法使用在 Linux 上运行的 Java 代码连接到 SQL Server。
如果我设置 integratedSecurity=true
,则 java 代码会失败并出现以下错误:
WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path
com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:b030b480-453d-4007-8151-a552150f74cd
这是有道理的,因为在 Linux 上没有 sqljdbc.dll
文件。
但是,如果我设置 integratedSecurity=false
,则会出现以下错误:
com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'IT_DEV_USER'.
那么有人知道如何将 integratedSecurity
设置为 false 连接到 SQL Server 吗? (请注意,当 integratedSecurity
设置为 false 时,当 Java 代码在 Windows 上运行时,我什至无法连接。)
如果没有,有什么方法可以让 integratedSecurity
在 Linux 上运行?
最佳答案
如果您想使用集成安全并使用 JDBC 驱动程序 4.0 或更高版本,那么您可以在 jdbc 连接字符串中添加以下内容。
integratedSecurity=true;authenticationScheme=JavaKerberos
关于java - 使用 integratedSecurity(Windows 身份验证)通过 JDBC 从 Linux 连接到 SQL Server?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30914061/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!