Reading from excel using oledbcommand

Posted by Broken Link on Stack Overflow See other posts from Stack Overflow or by Broken Link
Published on 2010-03-12T00:30:12Z Indexed on 2010/03/12 0:37 UTC
Read the original article Hit count: 307

Filed under:
|

In the below code instead of specifying the tab name.. Is there anyway we can just say "select * from [tab1]"? what ever the tab name might be..

 OleDbCommand excelOledbCommand =
                            new OleDbCommand("Select * From [Sheet1$]", excelOledbCon);

© Stack Overflow or respective owner

Related posts about c#

Related posts about excel