//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目录下就可以了。