I have attached a file with the code I am talking about. I am converting a program from VB.NET and I thought StringBuilder would be much more efficient. I took the concatenation and changed it to StringBuilder, but it is running for ever. Or is it because the insert is taking so long? I commented out the concatenated code, just in case I needed it again.
This is taking too long for one file and I have to make multiple files. The Excel file starts with a blank file with only a header row.
I hope someone can help me with this.
Thanks,
arep
Loading
Javeed M ShaikhPosted Nov 11, 2011, 4:24 PM
Javeed M ShaikhPosted Nov 14, 2011, 4:46 PM
A RepaskyPosted Nov 14, 2011, 4:43 PM
arep
Javeed M ShaikhPosted Nov 11, 2011, 5:28 PM
A RepaskyPosted Nov 11, 2011, 5:14 PM
sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\MMOExtract\\extract\\"
+ sFilename + ".xls;" + "Extended Properties=Excel 8.0";
Javeed M ShaikhPosted Nov 11, 2011, 4:51 PM