[英]How do I configure integrated authentication for SQL Server JDBC driver in Eclipse?
I am trying to create a new database connection to SQL Server in Eclipse, and I am getting the following error:我正在尝试在 Eclipse 中创建到 SQL Server 的新数据库连接,但出现以下错误:
*com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:f76bec48-e9f8-4a03-aea3-4840e8674267*
Environment details:环境细节:
Steps that led to the error:导致错误的步骤:
This is where I get the error noted above.这是我得到上面提到的错误的地方。
What I have tried to fix the error:我试图解决的错误:
Every time I try to ping this connection, I get the same error:每次尝试 ping 此连接时,都会遇到相同的错误:
*com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:733c823d-b740-4f70-89a4-4109a03dad58*
However, I am able to connect to this server/database with Windows Authentication via SQL Server Management Studio.但是,我可以通过 SQL Server Management Studio 使用 Windows 身份验证连接到此服务器/数据库。
Thanks for your help!谢谢你的帮助!
Late response for anyone who might still run into this... I had to drop a copy of the mssql-jdbc_auth- XYX .x64.dll file (from the driver's sqljdbc_ X.Y \\enu\\auth\\x64 folder) into the java.library.path on my Windows 10 machine and restart eclipse.对于可能仍然遇到此问题的任何人的迟到回应......我不得不将 mssql-jdbc_auth- XYX .x64.dll 文件的副本(来自驱动程序的 sqljdbc_ X.Y \\enu\\auth\\x64 文件夹)放入 java.library .path 在我的 Windows 10 机器上并重新启动 eclipse。 After that, I was able to connect using the integrated security.
之后,我能够使用集成安全进行连接。 BTW, the java.library.path should, in part, reflect your Windows environment's PATH variable.
顺便说一句, java.library.path 应该部分反映您的 Windows 环境的 PATH 变量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.