如何在IntelliJ IDEA 12中使用MS SQL Server的集成身份验证?(How can I use MS SQL Server's Integrated Authentication in IntelliJ IDEA 12?)

我在IntelliJ IDEA中配置了几个数据库连接。 我正在连接到MS SQL Server 2000/2005。 连接使用集成身份验证和SQLJDBC4驱动程序。 我有sqljdbc_auth.dll文件与sqljdbc4驱动程序在同一目录中。

我的配置工作在IntelliJ IDEA 10.5.4我刚刚升级到12.1.2现在我的连接抛出一个错误,没有正确配置集成身份验证,并且驱动程序找不到sqljdbc_auth.dll文件。

那么如何将sqljdbc_auth.dll文件添加为我的jdbc连接要加载的文件之一?

I have several database connections configured in IntelliJ IDEA. I'm connecting to MS SQL Server 2000/2005. The connections use Integrated Authentication, with the SQLJDBC4 driver. I have the sqljdbc_auth.dll file in the same directory as the sqljdbc4 driver.

My configuration worked in IntelliJ IDEA 10.5.4 I just recently upgraded to 12.1.2 and now my connections throw an error about not being properly configured for Integrated authentication and that the driver cannot find the sqljdbc_auth.dll file.

So how can I add the sqljdbc_auth.dll file as one of the files to be loaded for my jdbc connections?

最满意答案

我有64位Windows 7。

解决方案步骤

切换到使用64位IntelliJ IDEA可执行文件。 找出在启动时加载的64位JDK IDEA (该版本在Help-> About中给出) 将sqljdbc_auth.dll文件复制到JDKs jre \ bin \文件夹

我机器上的文件位置:(注意:我不确定哪个位置真的正确。)

C:\Program Files\Java\jdk1.7.0_05\bin\ < - 当前版本的Java IntelliJ IDEA正在使用。 C:\Windows\System32

I have 64 bit Windows 7.

Solution steps

Switch to using the 64bit IntelliJ IDEA executable. Figure out which installed 64bit JDK IDEA is loading on startup (the version is given in Help->About) copy the sqljdbc_auth.dll file to the JDKs jre\bin\ folder

File Locations on my machine: (NOTE: I'm not sure which location is truly correct.)

C:\Program Files\Java\jdk1.7.0_05\bin\ <-- Current version of Java IntelliJ IDEA is using. C:\Windows\System32

更多推荐