title: SQL ANT TASK ERROR: Class Not Found: JDBC driver com.microsoft.sqlserver.jdbc.SQLServerDriver could not be loaded
body: <p>I want to run an SQL query using the ant tasks, and I am using the SQLServerDriver (sqljdbc.jar). This jar file is located where I have all of my jars needed to run the application </p>
  
  <blockquote>
    <p>(WebContent/WEB-INF/lib)</p>
  </blockquote>
  
  <p>This directory is my classpath which I defined it in another TASK Command:</p>
  
  <pre><code>&lt;!-- Define el classpath que es utilizado para compilar los archivos --&gt;
  &lt;path id="classpath"&gt;
      &lt;fileset dir="${libs.dir}"&gt;
          &lt;include name="*.jar" /&gt;
      &lt;/fileset&gt;
  &lt;/path&gt;
  </code></pre>
  
  <p>This jar file is also indicated in my ecplise external jar files. 
  The ant command that I am trying to run is the following:</p>
  
  <pre><code>&lt;target name="db.query" description="Ejecuta un query de SQL"&gt;
      &lt;sql driver="${db.driverT}" url="${db.urlT}" userid="${db.userT}" 
              password="${db.passwordT}" print="TRUE"&gt;
          SELECT * FROM T007_EDO;
      &lt;/sql&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>What should I do to correct my error?</p>