A
almurph
Hi,
Am wondering can you help me please. I am processing an Excel file
(MS Office Excel 2003 11.8316.8221 SP3) with 60,000 rows using C#. I
am using the following connection string as shown below
*** CODE AS FOLLOWS ***
string strConnection = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" + file.FullName + ";Extended Properties=Excel 8.0";
OleDbConnection con = new OleDbConnection(strConnection);;
OleDbDataAdapter dAdapter = new OleDbDataAdapter("select * from
Sheet1", con);
DataTable dTable = new DataTable();
dAdapter.Fill(dTable);
*** END CODE ***
I am getting the impression when I cycle thru the rows that there is
some sort of limit to the datatable because it seems to get stuck at
around 51,000 or so (difficult to know where exactly).
My questions are: if this is the case how can I overcome it? Any
hints/suggestion/code-sample to aid this would be most appreciated.
Thank,
Al.
Am wondering can you help me please. I am processing an Excel file
(MS Office Excel 2003 11.8316.8221 SP3) with 60,000 rows using C#. I
am using the following connection string as shown below
*** CODE AS FOLLOWS ***
string strConnection = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" + file.FullName + ";Extended Properties=Excel 8.0";
OleDbConnection con = new OleDbConnection(strConnection);;
OleDbDataAdapter dAdapter = new OleDbDataAdapter("select * from
Sheet1", con);
DataTable dTable = new DataTable();
dAdapter.Fill(dTable);
*** END CODE ***
I am getting the impression when I cycle thru the rows that there is
some sort of limit to the datatable because it seems to get stuck at
around 51,000 or so (difficult to know where exactly).
My questions are: if this is the case how can I overcome it? Any
hints/suggestion/code-sample to aid this would be most appreciated.
Thank,
Al.