<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tips for reading Excel spreadsheets using ADO.NET</title>
	<atom:link href="http://blog.lab49.com/archives/196/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.lab49.com/archives/196</link>
	<description>Technology and industry insights from Lab49, Inc.</description>
	<lastBuildDate>Wed,  2 Dec 2009 13:01:54 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kyle</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-106480</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Thu, 20 Mar 2008 03:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-106480</guid>
		<description>i have the same problem as Nal Pec.  Has anyone ever found the solution to importing Zip Codes in the US that start with zeros?  Using CAST() in your SELECT statement doesn&#039;t work, and IMEX=1 doesn&#039;t seem to either.</description>
		<content:encoded><![CDATA[<p>i have the same problem as Nal Pec.  Has anyone ever found the solution to importing Zip Codes in the US that start with zeros?  Using CAST() in your SELECT statement doesn&#8217;t work, and IMEX=1 doesn&#8217;t seem to either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-105396</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Fri, 07 Mar 2008 16:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-105396</guid>
		<description>Important note here--using IMEX=1 makes the spreadsheet read-only.</description>
		<content:encoded><![CDATA[<p>Important note here&#8211;using IMEX=1 makes the spreadsheet read-only.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nal Pec</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-105082</link>
		<dc:creator>Nal Pec</dc:creator>
		<pubDate>Wed, 05 Mar 2008 20:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-105082</guid>
		<description>Is there a way to read values as text only. All of them!? I&#039;m happy to convert myself in code. I am reading values that start with zero&#039;s, and I want to keep the zero&#039;s on. It removes them and returns as double value. I need text only... any way to do this?

Thanks</description>
		<content:encoded><![CDATA[<p>Is there a way to read values as text only. All of them!? I&#8217;m happy to convert myself in code. I am reading values that start with zero&#8217;s, and I want to keep the zero&#8217;s on. It removes them and returns as double value. I need text only&#8230; any way to do this?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alberto coeltti</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-102383</link>
		<dc:creator>alberto coeltti</dc:creator>
		<pubDate>Thu, 14 Feb 2008 17:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-102383</guid>
		<description>Hi,
I cannot find a way to read a cell range in a sheet containing merged cells, even if those are placed outside the range I&#039;m actually reading.
Anyone know how to handle this?
Tanks</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I cannot find a way to read a cell range in a sheet containing merged cells, even if those are placed outside the range I&#8217;m actually reading.<br />
Anyone know how to handle this?<br />
Tanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mack</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-99634</link>
		<dc:creator>Mack</dc:creator>
		<pubDate>Thu, 24 Jan 2008 18:10:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-99634</guid>
		<description>Sorry have to add a correction to my first post. The column header names are NOT there, but as stated before the dataset has the correct number of rows..they just don&#039;t show any data in them.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Sorry have to add a correction to my first post. The column header names are NOT there, but as stated before the dataset has the correct number of rows..they just don&#8217;t show any data in them.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mack</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-99632</link>
		<dc:creator>Mack</dc:creator>
		<pubDate>Thu, 24 Jan 2008 18:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-99632</guid>
		<description>Hello all. Thank you all for your help in advance! I have followed the examples and it seems to be working correctly with one exception...I get no data what so ever from my excel sheets. I seem to get the right number of rows and the column headers are there with the correct names but every cell is blank...any clues? I am using VB.net 2005 and reading from Excel 2003.

Thanks all!</description>
		<content:encoded><![CDATA[<p>Hello all. Thank you all for your help in advance! I have followed the examples and it seems to be working correctly with one exception&#8230;I get no data what so ever from my excel sheets. I seem to get the right number of rows and the column headers are there with the correct names but every cell is blank&#8230;any clues? I am using VB.net 2005 and reading from Excel 2003.</p>
<p>Thanks all!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-98900</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Wed, 16 Jan 2008 06:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-98900</guid>
		<description>Hai, I&#039;ve read all the comments but no one mentioned this 1 problem:

I gave Cell A1:C10 with a name &#039;Chargeable&#039; in Sheet1, how can we get the data from it?
I&#039;ve tried using &#039;Select * From [Sheet1$Chargeable]&#039; but it didn&#039;t work.</description>
		<content:encoded><![CDATA[<p>Hai, I&#8217;ve read all the comments but no one mentioned this 1 problem:</p>
<p>I gave Cell A1:C10 with a name &#8216;Chargeable&#8217; in Sheet1, how can we get the data from it?<br />
I&#8217;ve tried using &#8216;Select * From [Sheet1$Chargeable]&#8216; but it didn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sid</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-97949</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Fri, 04 Jan 2008 14:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-97949</guid>
		<description>There is a way to force the datatypes 100% of the time, just do the following:

				string sql = &quot;SELECT * FROM [sheet1$]&quot;;
				cmd = new OleDbCommand(sql, connection);
				OleDbDataAdapter da = new OleDbDataAdapter(cmd);

				DataSet ds = new DataSet();
				ds.Tables.Add(&quot;xlsImport&quot;);
				DataTable dt = ds.Tables[0];
				dt.Columns.Add(&quot;field0&quot;, typeof(string));
				dt.Columns.Add(&quot;field1&quot;, typeof(string));
				dt.Columns.Add(&quot;field2&quot;, typeof(string));

				da.Fill(ds, &quot;xlsImport&quot;);</description>
		<content:encoded><![CDATA[<p>There is a way to force the datatypes 100% of the time, just do the following:</p>
<p>				string sql = &#8220;SELECT * FROM [sheet1$]&#8220;;<br />
				cmd = new OleDbCommand(sql, connection);<br />
				OleDbDataAdapter da = new OleDbDataAdapter(cmd);</p>
<p>				DataSet ds = new DataSet();<br />
				ds.Tables.Add(&#8221;xlsImport&#8221;);<br />
				DataTable dt = ds.Tables[0];<br />
				dt.Columns.Add(&#8221;field0&#8243;, typeof(string));<br />
				dt.Columns.Add(&#8221;field1&#8243;, typeof(string));<br />
				dt.Columns.Add(&#8221;field2&#8243;, typeof(string));</p>
<p>				da.Fill(ds, &#8220;xlsImport&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: niks</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-97509</link>
		<dc:creator>niks</dc:creator>
		<pubDate>Thu, 27 Dec 2007 10:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-97509</guid>
		<description>very nice article and its help me lot.
I have .csv file instead of excel sheet with different value means string and numeric value in one column.
I have SSN field which have string and numeric value in .csv file.when i execute my code its gives me data but the cell which have string value in ssn column and all other  value in numeric data then only that string value is not retrieve its return nothing in tht cell value  when i get data from ado.net</description>
		<content:encoded><![CDATA[<p>very nice article and its help me lot.<br />
I have .csv file instead of excel sheet with different value means string and numeric value in one column.<br />
I have SSN field which have string and numeric value in .csv file.when i execute my code its gives me data but the cell which have string value in ssn column and all other  value in numeric data then only that string value is not retrieve its return nothing in tht cell value  when i get data from ado.net</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satish</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-97473</link>
		<dc:creator>satish</dc:creator>
		<pubDate>Wed, 26 Dec 2007 09:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-97473</guid>
		<description>Tin	    28999999999				
Form Type   c-form				
Form No	    1000				
vehicleno	Transportername	InvoiceNo
1234             asdf             4567
1235             zxcv             4568
1236             xcvb             4569

This was the data formatin the excel file. the actual data was from 4th row. how to read the data from nth row and display in grid</description>
		<content:encoded><![CDATA[<p>Tin	    28999999999<br />
Form Type   c-form<br />
Form No	    1000<br />
vehicleno	Transportername	InvoiceNo<br />
1234             asdf             4567<br />
1235             zxcv             4568<br />
1236             xcvb             4569</p>
<p>This was the data formatin the excel file. the actual data was from 4th row. how to read the data from nth row and display in grid</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SpinDonkey</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-96893</link>
		<dc:creator>SpinDonkey</dc:creator>
		<pubDate>Fri, 14 Dec 2007 11:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-96893</guid>
		<description>Fantastic! I was scratching my head trying to work out what on earth was going on with missing number values in results selected from a largely text dominated field. You are a gentleman and a scholar :)</description>
		<content:encoded><![CDATA[<p>Fantastic! I was scratching my head trying to work out what on earth was going on with missing number values in results selected from a largely text dominated field. You are a gentleman and a scholar <img src='http://blog.lab49.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wectan</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-93101</link>
		<dc:creator>Wectan</dc:creator>
		<pubDate>Thu, 25 Oct 2007 02:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-93101</guid>
		<description>Hi, regards to Nunes and Danny mentioned earlier, getting the name of the first worksheet (&quot;TABLE_NAME&quot;) is the first alphabetically sorted sheet name, not the first sheet in the Excel workbook.

I found a solution for this problem. 
Microsoft DAO 3.5 Library is needed</description>
		<content:encoded><![CDATA[<p>Hi, regards to Nunes and Danny mentioned earlier, getting the name of the first worksheet (&#8221;TABLE_NAME&#8221;) is the first alphabetically sorted sheet name, not the first sheet in the Excel workbook.</p>
<p>I found a solution for this problem.<br />
Microsoft DAO 3.5 Library is needed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodrigo</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-92988</link>
		<dc:creator>Rodrigo</dc:creator>
		<pubDate>Wed, 24 Oct 2007 12:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-92988</guid>
		<description>Hi Guys,
I&#039;m now using it on my to read some large files, and I want to use range , like [sheet1$11:100]. It works fine, but there is a particular case that it doesnt works. Its when I have a sheet with 31 characters, in my case : CLEAVEDB62305offer_0529163742Ge . 

When i try to do a &quot;select * from [CLEAVEDB62305offer_0529163742Ge$10:100]&quot; , it shows me an error message.
Obs.: If I try : &quot;select * from [CLEAVEDB62305offer_0529163742G$10:100]&quot; it works fine
Anyone have any idea to solve it ?</description>
		<content:encoded><![CDATA[<p>Hi Guys,<br />
I&#8217;m now using it on my to read some large files, and I want to use range , like [sheet1$11:100]. It works fine, but there is a particular case that it doesnt works. Its when I have a sheet with 31 characters, in my case : CLEAVEDB62305offer_0529163742Ge . </p>
<p>When i try to do a &#8220;select * from [CLEAVEDB62305offer_0529163742Ge$10:100]&#8221; , it shows me an error message.<br />
Obs.: If I try : &#8220;select * from [CLEAVEDB62305offer_0529163742G$10:100]&#8221; it works fine<br />
Anyone have any idea to solve it ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-92794</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Tue, 23 Oct 2007 14:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-92794</guid>
		<description>Hey Joe, cool article! It&#039;s very rare to come across something this useful yet compact. My hat off, man.</description>
		<content:encoded><![CDATA[<p>Hey Joe, cool article! It&#8217;s very rare to come across something this useful yet compact. My hat off, man.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-91935</link>
		<dc:creator>Kelvin</dc:creator>
		<pubDate>Fri, 19 Oct 2007 15:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-91935</guid>
		<description>Raja, if you&#039;re still struggling with the error “External table is not in the expected format,” I&#039;ve found that I get that error if the Excel file is in a particularly old version of Excel. In my case, when I chose File/Save As in Excel after opening up the file, Excel said it was ready to save it as type &quot;Microsoft Excel 2.1 worksheet&quot;. When I saved it in the modern type of &quot;Microsoft Excel workbook&quot; or &quot;Microsoft Excel 97-2002 and 5.0/95 workbook&quot;, the import worked correctly.

The other option would be to change the &quot;Extended Properties=&quot;&quot;Excel 8.0&quot;&quot;&quot; code in the connection string to an earlier version. I think I&#039;ve seen elsewhere that you&#039;d want to use Excel 5.0 for the older worksheet formats, but I&#039;m not sure; you&#039;d have to test that out.</description>
		<content:encoded><![CDATA[<p>Raja, if you&#8217;re still struggling with the error “External table is not in the expected format,” I&#8217;ve found that I get that error if the Excel file is in a particularly old version of Excel. In my case, when I chose File/Save As in Excel after opening up the file, Excel said it was ready to save it as type &#8220;Microsoft Excel 2.1 worksheet&#8221;. When I saved it in the modern type of &#8220;Microsoft Excel workbook&#8221; or &#8220;Microsoft Excel 97-2002 and 5.0/95 workbook&#8221;, the import worked correctly.</p>
<p>The other option would be to change the &#8220;Extended Properties=&#8221;"Excel 8.0&#8243;&#8221;" code in the connection string to an earlier version. I think I&#8217;ve seen elsewhere that you&#8217;d want to use Excel 5.0 for the older worksheet formats, but I&#8217;m not sure; you&#8217;d have to test that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maverick</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-91459</link>
		<dc:creator>Maverick</dc:creator>
		<pubDate>Wed, 17 Oct 2007 10:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-91459</guid>
		<description>Thanks Naorem ,

I got it , I needed to set IMEX=1 ; and now I m getting all values.

But thats very strange that why I was getting the values column X,Y,Z if I add value for for these columns for other rows ? 

Any how my problem is solved thanks for help , But I think Jet driver should throw some exception , warning or something to warn user for this kind of situation.</description>
		<content:encoded><![CDATA[<p>Thanks Naorem ,</p>
<p>I got it , I needed to set IMEX=1 ; and now I m getting all values.</p>
<p>But thats very strange that why I was getting the values column X,Y,Z if I add value for for these columns for other rows ? </p>
<p>Any how my problem is solved thanks for help , But I think Jet driver should throw some exception , warning or something to warn user for this kind of situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naorem Ranjan</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-91376</link>
		<dc:creator>Naorem Ranjan</dc:creator>
		<pubDate>Wed, 17 Oct 2007 04:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-91376</guid>
		<description>Hi Maverick,

Send us the 
connection string used to read the excel worksheet, the data of the X,Y,Z columns and
Registry Setting of 
&quot;TypeGuessRows&quot; and &quot;ImportMixedTypes&quot;</description>
		<content:encoded><![CDATA[<p>Hi Maverick,</p>
<p>Send us the<br />
connection string used to read the excel worksheet, the data of the X,Y,Z columns and<br />
Registry Setting of<br />
&#8220;TypeGuessRows&#8221; and &#8220;ImportMixedTypes&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maverick</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-91240</link>
		<dc:creator>Maverick</dc:creator>
		<pubDate>Tue, 16 Oct 2007 16:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-91240</guid>
		<description>Hi , 

First of all Grt article.
Actually I m reading Excel file with columns till &#039;CH&#039; and 15 rows.
My problem is due to some reason its not reading the values of only these 3 columns X,Y and Z. 
(Column X,Y,Z have only values for row 12,13)

If I add value for column X on row 5,6 ( or any row ) I strat to get values of whole column and thats true for Column Y,Z. 

Now this is very weird , I have check the excel sheet and those columns are no different from other columns in any regard , I have few other columns who have values against 2,3 rows and they all are showing proerly. 

Any sugesstions for my problem ?
Thanks,
Maverick</description>
		<content:encoded><![CDATA[<p>Hi , </p>
<p>First of all Grt article.<br />
Actually I m reading Excel file with columns till &#8216;CH&#8217; and 15 rows.<br />
My problem is due to some reason its not reading the values of only these 3 columns X,Y and Z.<br />
(Column X,Y,Z have only values for row 12,13)</p>
<p>If I add value for column X on row 5,6 ( or any row ) I strat to get values of whole column and thats true for Column Y,Z. </p>
<p>Now this is very weird , I have check the excel sheet and those columns are no different from other columns in any regard , I have few other columns who have values against 2,3 rows and they all are showing proerly. </p>
<p>Any sugesstions for my problem ?<br />
Thanks,<br />
Maverick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naorem Ranjan</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-91192</link>
		<dc:creator>Naorem Ranjan</dc:creator>
		<pubDate>Tue, 16 Oct 2007 09:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-91192</guid>
		<description>In scientific notation conversion issue,
Even if we use string.Format(”{0}”,item[i]) we won&#039;t be able to get the exact data. It is rounded off.

Excel File column contains: 18520022
This will be retrived as:   18520000

If we use in the select query from excel like
&quot;select Format([ColName], &#039;0&#039;) from [SheetName]&quot;, the same issue exists.

If we put &#039; at the beginning of cell then the it is readed the original data. But this is not efficient way of solving the issue.

Have tried a lot on this issue this is the only way to get rid of the problem.

Hoping anybody can help me solving the issue.</description>
		<content:encoded><![CDATA[<p>In scientific notation conversion issue,<br />
Even if we use string.Format(”{0}”,item[i]) we won&#8217;t be able to get the exact data. It is rounded off.</p>
<p>Excel File column contains: 18520022<br />
This will be retrived as:   18520000</p>
<p>If we use in the select query from excel like<br />
&#8220;select Format([ColName], &#8216;0&#8242;) from [SheetName]&#8220;, the same issue exists.</p>
<p>If we put &#8216; at the beginning of cell then the it is readed the original data. But this is not efficient way of solving the issue.</p>
<p>Have tried a lot on this issue this is the only way to get rid of the problem.</p>
<p>Hoping anybody can help me solving the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sameer Rana</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-88214</link>
		<dc:creator>Sameer Rana</dc:creator>
		<pubDate>Wed, 26 Sep 2007 17:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-88214</guid>
		<description>Excelent article. Thank you Sir!

One small addition. While reading the sheet names, in case there is . in the sheet name for example .net data, it will replace the . with #, meaning in above example it&#039;ll return #net data rather than .net data. While coding make sure to handel this exception.</description>
		<content:encoded><![CDATA[<p>Excelent article. Thank you Sir!</p>
<p>One small addition. While reading the sheet names, in case there is . in the sheet name for example .net data, it will replace the . with #, meaning in above example it&#8217;ll return #net data rather than .net data. While coding make sure to handel this exception.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subho100</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-86325</link>
		<dc:creator>Subho100</dc:creator>
		<pubDate>Tue, 18 Sep 2007 04:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-86325</guid>
		<description>Answer for uploading huge decimals from excel to database when it becomes &#039;4.08217e+009&#039; like values. Convert them to strings...

same problem for me
long integer is reading like this
4.08217e+009
4.08217e+009
please help 

string.Format(&quot;{0}&quot;,item[i])

Thank you Pronojit for this tip.</description>
		<content:encoded><![CDATA[<p>Answer for uploading huge decimals from excel to database when it becomes &#8216;4.08217e+009&#8242; like values. Convert them to strings&#8230;</p>
<p>same problem for me<br />
long integer is reading like this<br />
4.08217e+009<br />
4.08217e+009<br />
please help </p>
<p>string.Format(&#8221;{0}&#8221;,item[i])</p>
<p>Thank you Pronojit for this tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheRoyalFalcon</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-81599</link>
		<dc:creator>TheRoyalFalcon</dc:creator>
		<pubDate>Wed, 29 Aug 2007 17:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-81599</guid>
		<description>This is a nice alternative to OLE for basics. Thank you for breaking this down, as it is quite a help.

I was wondering, is there anyway I could change a worksheet setting via this? I would like to use the above to turn on/off gridlines for a given worksheet. Do you think that is possible? Thanks</description>
		<content:encoded><![CDATA[<p>This is a nice alternative to OLE for basics. Thank you for breaking this down, as it is quite a help.</p>
<p>I was wondering, is there anyway I could change a worksheet setting via this? I would like to use the above to turn on/off gridlines for a given worksheet. Do you think that is possible? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack555</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-77899</link>
		<dc:creator>jack555</dc:creator>
		<pubDate>Fri, 10 Aug 2007 11:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-77899</guid>
		<description>Partly solved my problem. Thanks.
Not sure if it wasn&#039;t mentioned above, but if someone for some reason will need to query worksheet which name starts with digit, it needs to be written between apostrophes. For example for worksheet 1qrt like [&#039;1qrt$&#039;]</description>
		<content:encoded><![CDATA[<p>Partly solved my problem. Thanks.<br />
Not sure if it wasn&#8217;t mentioned above, but if someone for some reason will need to query worksheet which name starts with digit, it needs to be written between apostrophes. For example for worksheet 1qrt like ['1qrt$']</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marc benigni</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-70077</link>
		<dc:creator>marc benigni</dc:creator>
		<pubDate>Thu, 05 Jul 2007 15:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-70077</guid>
		<description>Following up on Lee Hopkin&#039;s point - there seems to be an outstanding problem with date fields.  Does anyone have any idea how to address this?  I can force the imported data type to text (in most cases this was the default anyway) but if I do so all dates come in as null.  Is there anyway to cast so as to account for both possibilities in one select?

This, for instance does *not* work.  Looking for an alternative:

SELECT *, CAST([col name] AS DATE) FROM [table name]

This is truly awful ADO implementation...</description>
		<content:encoded><![CDATA[<p>Following up on Lee Hopkin&#8217;s point &#8211; there seems to be an outstanding problem with date fields.  Does anyone have any idea how to address this?  I can force the imported data type to text (in most cases this was the default anyway) but if I do so all dates come in as null.  Is there anyway to cast so as to account for both possibilities in one select?</p>
<p>This, for instance does *not* work.  Looking for an alternative:</p>
<p>SELECT *, CAST([col name] AS DATE) FROM [table name]</p>
<p>This is truly awful ADO implementation&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avi</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-64704</link>
		<dc:creator>Avi</dc:creator>
		<pubDate>Wed, 20 Jun 2007 01:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-64704</guid>
		<description>Hi

I am wondering what will happen when the worksheet has (say) 80 rows and the TypeGuessRows is set to 0.

Will the JET engine scan all the rows upto 16384 or just upto the last (ie 80th) row of the worksheet.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I am wondering what will happen when the worksheet has (say) 80 rows and the TypeGuessRows is set to 0.</p>
<p>Will the JET engine scan all the rows upto 16384 or just upto the last (ie 80th) row of the worksheet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fehlerhafter Import von Excel-Zellen bei ADO.NET mit Jet OLEDB 4.0 at lemming.name</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-62129</link>
		<dc:creator>Fehlerhafter Import von Excel-Zellen bei ADO.NET mit Jet OLEDB 4.0 at lemming.name</dc:creator>
		<pubDate>Tue, 12 Jun 2007 06:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-62129</guid>
		<description>[...] Fast totgesucht, bis ich hier fündig wurde. [...]</description>
		<content:encoded><![CDATA[<p>[...] Fast totgesucht, bis ich hier fündig wurde. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raja</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-60779</link>
		<dc:creator>Raja</dc:creator>
		<pubDate>Thu, 07 Jun 2007 13:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-60779</guid>
		<description>The excel format is:
column1 column2 column3
        
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Raja 1234
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Ramakrish 2345

when i open the connection, i got the error. “External table is not in the expected format.”
give me a solution???????????</description>
		<content:encoded><![CDATA[<p>The excel format is:<br />
column1 column2 column3</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Raja 1234<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ramakrish 2345</p>
<p>when i open the connection, i got the error. “External table is not in the expected format.”<br />
give me a solution???????????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raja</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-60773</link>
		<dc:creator>Raja</dc:creator>
		<pubDate>Thu, 07 Jun 2007 13:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-60773</guid>
		<description>&lt;b&gt;The excel format is:&lt;/b&gt;
column1   column2    column3
          Raja       1234
          Ramakrish  2345


when i open the connection,  i got the error. &quot;External table is not in the expected format.&quot;
give me a solution???????????</description>
		<content:encoded><![CDATA[<p><b>The excel format is:</b><br />
column1   column2    column3<br />
          Raja       1234<br />
          Ramakrish  2345</p>
<p>when i open the connection,  i got the error. &#8220;External table is not in the expected format.&#8221;<br />
give me a solution???????????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sasi</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-56377</link>
		<dc:creator>sasi</dc:creator>
		<pubDate>Thu, 24 May 2007 06:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-56377</guid>
		<description>same problem for me
long integer is reading like this 
4.08217e+009
4.08217e+009
please help</description>
		<content:encoded><![CDATA[<p>same problem for me<br />
long integer is reading like this<br />
4.08217e+009<br />
4.08217e+009<br />
please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.lab49.com/archives/196/comment-page-2#comment-56183</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 23 May 2007 14:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lab49.com/?p=196#comment-56183</guid>
		<description>I&#039;m having the same problem as Gerhard.  I have tried several ways around the issue but got know where.

Any one have any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the same problem as Gerhard.  I have tried several ways around the issue but got know where.</p>
<p>Any one have any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
