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 ShaikhRank #839 · 2.7K reputationPosted Nov 11, 2011, 11:24 AM EST
Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 11, 2011, 11:51 AM EST
A RepaskyRank #8,108 · 228 reputationPosted Nov 11, 2011, 12:14 PM EST
sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\MMOExtract\\extract\\"
+ sFilename + ".xls;" + "Extended Properties=Excel 8.0";
Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 11, 2011, 12:28 PM EST
A RepaskyRank #8,108 · 228 reputationPosted Nov 14, 2011, 11:43 AM EST
arep
Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 14, 2011, 11:46 AM EST