I am reading Excel Data into a Dataset in VB.net using the following code:
Dim MyDataset as New Dataset()
Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=c:\temp\tariff.xls; Extended Properties='Excel 8.0;HDR=YES'"
Dim mySingleData As New OleDbDataAdapter("SELECT rate1ceiling FROM
[tariff$] ", strConn)
mySingleData.Fill(myDataset)
Some of the rows in tariff.xls contain integer data, but once loaded into
myDataSet they are NULL. The same happens with "Select *", in that the same
column is not filled, but the rest are. The spreadsheet has 12555 rows and 20
columns. If I delete all but 5 rows then the problem disappears, so it seems
to be associated with size.
Archived from group: microsoft>public>vb>ole>automation