title: Solr DataImportHandler logs into SQL but never fetches any data
body: <p>Hi I have copied my Solr config from a working windows server to a new one, and it can't seem to run an import.</p>
  
  <p>They're both using win server 2008 and SQL 2008R2. This is the data import config:</p>
  
  <pre><code>&lt;dataConfig&gt;  
    &lt;dataSource type="JdbcDataSource"  name="ds1"
          driver="com.microsoft.sqlserver.jdbc.SQLServerDriver"  
          url="jdbc:sqlserver://localhost;databaseName=DB"   
          user="Solr"  
          password="pwd"/&gt;  
    &lt;document name="datas"&gt;  
      &lt;entity name="data" dataSource="ds1" pk="key"
      query="EXEC SOLR_COMPANY_SEARCH_DATA"
      deltaImportQuery="SELECT * FROM Company_Search_Data WHERE [key]='${dataimporter.delta.key}'"
      deltaQuery="SELECT [key] FROM Company_Search_Data WHERE modify_dt &gt; '${dataimporter.last_index_time}'"&gt;  
            &lt;field column="WorkDesc_Comments" name="WorkDesc_Comments_Split" /&gt;
            &lt;field column="WorkDesc_Comments" name="WorkDesc_Comments_Edge" /&gt;
      &lt;/entity&gt;  
    &lt;/document&gt;  
  &lt;/dataConfig&gt;  
  </code></pre>
  
  <p>I can use MS SQL Profiler to watch the Solr user log in successfully, but then nothing. It doesn't seem to even try and execute the stored procedure. Any ideas why this would be working one server and not on another?</p>
  
  <p>FTR the only thing in the tomcat catalina log is:</p>
  
  <pre><code>org.apache.solr.handler.dataimport.JdbcDataSource$1 call
  INFO: Creating a connection for entity data with URL: jdbc:sqlserver://localhost;databaseName=CATLive
  </code></pre>
  
  <p><strong>UPDATE:</strong>
  Me and Yavar Husain from the Solr Mailing list both came up with the solution of replacing the MS JDBC Driver with an open source one - this seems to work, and means this must be a compatibility problem between the latest versions of Java, the DIH and the MS JDBC driver.</p>
  
  <p><strong>UPDATE 2:</strong>
  Issues have been reported with Java 1.6.0_29 - <em>which I am running!</em>
  <a href="http://blogs.msdn.com/b/jdbcteam/archive/2011/11/07/supported-java-versions-november-2011.aspx" rel="noreferrer">http://blogs.msdn.com/b/jdbcteam/archive/2011/11/07/supported-java-versions-november-2011.aspx</a></p>