title: Sql Server - connect with windows authentication
body: <p>i must connect to a sql server with windows authentication</p>
  
  <p>sql server is on machine 192.168.3.6
  web server (client) is on my machine 192.168.3.10</p>
  
  <p>I'm using JTDS driver</p>
  
  <pre><code>dbUrl=jdbc:jtds:sqlserver://192.168.3.6:1099/db_test;instance=test
  Connection con = DriverManager.getConnection( dbUrl, "", "" );
  </code></pre>
  
  <p>I have username and password of administrator user of sql server !</p>
  
  <p>I also put <code>ntlmauth.dll</code> into <code>c:\windows</code> and <code>c:\windows\system32</code> and I have always error:</p>
  
  <blockquote>
    <p>java.sql.SQLException: Login failed for user '(null)'. Reason: Not
    associated with a trusted SQL Server connection.</p>
  </blockquote>
  
  <p>Any idea to solve my problem ?
  Thank you very much</p>