The SqlDataReader.GetSchemaTable method returns a DataTable that describes the column metadata of the SqlDataReader.
The SqlDataReader.GetSchemaTable method returns a DataTable that describes the column metadata of the SqlDataReader.
Column schema information includes the following information about the column:
- Name;
- Data type;
- Size;
- Whether the column is a primary key field;
- Whether the column is an autonumber (AutoIncrement) field.
Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Source:http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader.getschematable.aspx