title: How do I configure integrated authentication for SQL Server JDBC driver in Eclipse?
body: <p>I am trying to create a new database connection to SQL Server in Eclipse, and I am getting the following error:</p>
  
  <pre><code>*com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:f76bec48-e9f8-4a03-aea3-4840e8674267*
  </code></pre>
  
  <p>Environment details:</p>
  
  <ul>
  <li>Windows Server 2016 Datacenter (x64) </li>
  <li>Microsoft SQL Server 2014 (SP2-GDR)</li>
  <li>Eclipse 4.9.0 JRE 1.8.0_191</li>
  <li>Driver: sqljdbc 6.0</li>
  </ul>
  
  <hr>
  
  <p>Steps that led to the error:</p>
  
  <ol>
  <li>Opened Data Source Explorer and added a new Database Connection</li>
  <li>Chose Microsoft SQL Server 2008 JDBC Driver (I was not able to get any of the newer ones to work; it wouldn't let me enter any properties).</li>
  <li>Pointed Eclipse to my JAR file (sqljdbc42.jar)</li>
  <li>Entered the database properties and chose "Use integrated authentication"</li>
  <li>Clicked "Test Database Connection"</li>
  </ol>
  
  <p>This is where I get the error noted above.</p>
  
  <hr>
  
  <p>What I have tried to fix the error:</p>
  
  <ul>
  <li>I read that this error is often due to the absence of the sqljdbc_auth.dll file in the Windows system path, so I moved the x64 version of this file to C:\Windows\System32 (and I also tried C:\Windows\SysWOW64 for good measure), but, same result.</li>
  <li>I also found that adding the sqljdbc_auth.dll file to the java.library.path value can be a potential fix, but I am not sure how to do that since I am not actually in a project at this point; I am in the Data Source Explorer trying to add a new connection.</li>
  </ul>
  
  <hr>
  
  <p>Every time I try to ping this connection, I get the same error:</p>
  
  <pre><code>*com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:733c823d-b740-4f70-89a4-4109a03dad58*
  </code></pre>
  
  <p>However, I am able to connect to this server/database with Windows Authentication via SQL Server Management Studio.</p>
  
  <p>Thanks for your help!</p>