title: Help with a OleDB connection string for excel files
body: <p>The problem i'm having is that the data adapter is looking at only the first row  in each column to determine the data type. In my case the first column "SKU" is numbers for the first 500 rows then I happen to have SKU's which are mixed numbers and letters. So what ends up happening is rows in the SKU column are left blank, but I still get the other information for each column row.</p>
  
  <p>I believe it is the connection string that controls that and with my current settings it should work, however it is not.</p>
  
  <p>Connection String:</p>
  
  <pre><code>conn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Nick\Desktop\Pricing2.xlsx" + @";Extended Properties=""Excel 12.0 Xml;HDR=Yes;IMEX=1;ImportMixedTypes=Text;TypeGuessRows=0""";
  </code></pre>
  
  <p><br /></p>
  
  <pre><code>ImportMixedTypes=Text;TypeGuessRows=0
  </code></pre>
  
  <p>Should be the important keywords, look at 0 rows and just use text as the value types for everything.</p>
  
  <p>The "bandaid" I have put on this is to make the first row in the spreadsheet a mixture of letters and numbers and specifically leave that row out in my query.</p>