OleDbDataReader oleDbDataReader = oleDbCommand.ExecuteReader(CommandBehavior.KeyInfo);
DataTable dataTable = oleDbDataReader.GetSchemaTable();
How does GetSchemaTable()
work?
Where does it get its information in RDBMS?
OleDbDataReader oleDbDataReader = oleDbCommand.ExecuteReader(CommandBehavior.KeyInfo);
DataTable dataTable = oleDbDataReader.GetSchemaTable();
How does GetSchemaTable()
work?
Where does it get its information in RDBMS?
From the system tables (e.g., syscolumns, sysobjects, etc) in each database.
GetSchemaTable() reads the metadata on the resultset returned by ADO.NET.