title: SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:ac8ee3bc-e4b0-4cb9-9dcd-f83ce3eab689
body: <p>I was trying to run a simple JSP file to retrieve data from Microsoft SQL Server using following simple code:</p>
  <pre><code>&lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;
      pageEncoding=&quot;ISO-8859-1&quot;%&gt;
  &lt;%@ page import= &quot;java.sql.* &quot;%&gt;    
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset=&quot;ISO-8859-1&quot;&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;%
  Class.forName(&quot;com.microsoft.sqlserver.jdbc.SQLServerDriver&quot;);
  out.println(&quot;Comand completed successfully&quot;+&quot;&lt;br&gt;&quot;);
  String connString=&quot;jdbc:sqlserver://DESKTOP-HTN7DNE\\MSSQLSERVER;&quot;+&quot;databaseName=Hospital_Mmg_System; integratedSecurity=true;&quot;;
  Connection conn= DriverManager.getConnection(connString);
  Statement stmt=conn.createStatement();
  String query=&quot;Select * From patient&quot;;
  ResultSet rs=stmt.executeQuery(query);
  
  while(rs.next()) {
      out.println(rs.getString(1)+&quot;  &quot;+rs.getString(2)+&quot;  &quot;+rs.getString(3)+&quot;  &quot;+ rs.getString(4)+&quot;  &quot;+ rs.getString(5)+&quot;  &quot;+ rs.getString(6)+&quot;&lt;br&gt;&quot;);
  }
  %&gt;
  </code></pre>
  <p>I faced that error, then I copied the <code>mssql-jdbc_auth-9.2.1.x64.dll</code> file and pasted in the Java <code>bin</code> folder and it worked.</p>
  <p>But then I'm trying to run another JSP file to insert data to the database using the following simple codes:</p>
  <pre><code>&lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;
  pageEncoding=&quot;ISO-8859-1&quot;%&gt;
  &lt;%@page import=&quot;java.sql.*,java.util.*&quot;%&gt;
  
  &lt;%
  String first_name=request.getParameter(&quot;first_name&quot;);
  String last_name=request.getParameter(&quot;last_name&quot;);
  String city_name=request.getParameter(&quot;city_name&quot;);
  String email=request.getParameter(&quot;email&quot;);
  
  
  Class.forName(&quot;com.microsoft.sqlserver.jdbc.SQLServerDriver&quot;);
  String connString=&quot;jdbc:sqlserver://DESKTOP-HTN7DNE\\MSSQLSERVER;&quot;+&quot;databaseName=Test; integratedSecurity=true;&quot;;
  Connection conn= DriverManager.getConnection(connString);
  Statement st=conn.createStatement();
  
  int i=st.executeUpdate(&quot;insert into users(first_name,last_name,city_name,email)values('&quot;+first_name+&quot;','&quot;+last_name+&quot;','&quot;+city_name+&quot;','&quot;+email+&quot;')&quot;);
  out.println(&quot;Data is successfully inserted!&quot;);
  %&gt;
  </code></pre>
  <p>I'm faced with the same error. I have already pasted this <code>mssql-jdbc_auth-9.2.1.x64.dll</code> in the Java <code>bin</code> file, then why this error again? What should I do now?</p>