C # using OLEDB reads EXCEL, table structure

var tables = con.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables, new object[] { });

Tables.Colmuns

Tables.Rows

I have four of Excel worksheet, there are only sourceData data, but here it appeared the five elements, a bit puzzled.

The extra line is this, a big God can explain it to me.

Guess you like

Origin www.cnblogs.com/tigerK/p/11209638.html