I'm using SQL to query Excel File as HERE, and I know I can get the content of worksheet by something like:
var ds = new DataSet();
var conn = new OleDbConnection();
conn.Open();
var cmd = new OleDbDataAdapter("Select * FROM [Sheet1$]", conn);
cmd.Fill(ds, "ds1");
and I want to ask is there way to get all table names?
I've tried this answer but not working.