Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Error - string does not contain a definition for GetOleDbSchemaTable and no extension method GetOleDbSchemaTable accepting a first argument of type string could be found.

$
0
0

Hi

  I have below code on which it gives above error

DataTable dtExcelSchema; dtExcelSchema = excelConnectionString.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);

string sheetName = dtExcelSchema.Rows[0]["TABLE_NAME"];

Thanks


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>