//Windows身份验证,而1368是自定义端口
String url="jdbc:sqlserver://localhost:1368;DatabaseName=testdb:integratedSecurity=true";

设置TCP/IP的端口是1368,结果提示“Failed to load the sqljdbc_auth.dll”的错误。

解决方法将sqljdbc_auth.dll 复制至C:\Windows\System32目录下就可以了。

 posted on 2018-09-04 20:23  会飞的金鱼  阅读(375)  评论(0)    收藏  举报