Re: Why ADO with Excel formats text data with only numbers ?
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 09:02:49 -0400
JoseValencia wrote:
I'm using ADO.NET to read an excel file. In one of the columns I haveWill this help?
data that can be a mix of numbers and letters, but sometimes there
are only numbers. The value I get for the number 300015532 is
3.00016e+008. I want to capture the actual value 300015532 .
Anybody has fixed it?
Here is the connection string used in the datasource:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\file.xls;Extended
Properties="Excel 8.0;IMEX=1;"
Here is a sample of values of such column:
300014AKB
300014AKQ
3000152TQ
300014AGY
300015532 --> This failed
http://groups.google.com/group/comp.databases.ms-sqlserver/browse_frm/thread/1678755b6673b51a/72f03347c3c0dbd9?lnk=st&q=%22Excel+8.0%3BIMEX%3D1%3B%22+number+as+text&rnum=8&hl=en#72f03347c3c0dbd9
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Prev by Date: Re: Why ADO with Excel formats text data with only numbers ?
- Next by Date: SaveToFile error
- Previous by thread: Re: Why ADO with Excel formats text data with only numbers ?
- Next by thread: Re: Why ADO with Excel formats text data with only numbers ?
- Index(es):
Relevant Pages
|
|