title: no mssql-jdbc_auth-8.2.1.x64 in java.library.path
body: <p>I'm trying to connect to SQL DB in my Maven project, but keep getting following exception: </p>
  
  <p>"com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ...", "..Caused by: java.lang.UnsatisfiedLinkError: no mssql-jdbc_auth-8.2.1.x64 in java.library.path....".</p>
  
  <p>I've tried out suggestions from <a href="https://stackoverflow.com/questions/11707056/no-sqljdbc-auth-in-java-library-path">no sqljdbc_auth in java.library.path</a> and <a href="https://stackoverflow.com/questions/56953643/unsatisfiedlinkerror-no-sqljdbc-auth-in-java-library-path">UnsatisfiedLinkError: no sqljdbc_auth in java.library.path</a> but it didn't work for me.</p>
  
  <p>I've put the path to sqljdbc_auth.dll in:</p>
  
  <ol>
  <li><p>Global PATH variable <a href="https://i.stack.imgur.com/aSJNL.png" rel="nofollow noreferrer">Global PATH variable screenshot</a></p></li>
  <li><p>C:\Program Files\Java\jdk-13.0.2\bin <a href="https://i.stack.imgur.com/uleGn.png" rel="nofollow noreferrer">C:\Program Files\Java\jdk-13.0.2\bin screenshot</a></p></li>
  <li><p>pom.xml (as a configuration in surefire plugin dependency)
  <a href="https://i.stack.imgur.com/vFy0l.png" rel="nofollow noreferrer">pom.xml screenshot</a></p></li>
  </ol>
  
  <p>And here is my code:</p>
  
  <pre><code>public class JDBC {
  
      @Test
      public  void test() throws SQLException, ClassNotFoundException {
  
          String UserName="sa";
          String Password="Error911";
          Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
          String DB_URL ="jdbc:sqlserver://localhost:1433;databaseName=QADB;integratedSecurity=true;";
          //OR by using ip
          //DB_URL ="jdbc:sqlserver://192.168.0.104;databaseName=QADB;integratedSecurity=true;";
          Connection con = DriverManager.getConnection(DB_URL, UserName, Password);
      }
  }
  </code></pre>
  
  <p>And the exception in console output:</p>
  
  <blockquote>
    <p>com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not
    configured for integrated authentication...........................</p>
    
    <p>...Caused by: java.lang.UnsatisfiedLinkError: no mssql-jdbc_auth-8.2.1.x64 in java.library.path:
    [C:\Users\Automation\Microsoft JDBC Driver 6.0 for SQL
    Server\sqljdbc_6.0\enu\auth\x64]..
    ....</p>
  </blockquote>