The example shown covers IDataReader, but makes no mention of IDataReader. Is there an example of IDataReader available? Thanks.
Tilak>> The example is correct. Actually SqlDataReader implements both IDataReader, and IDataRecord. Implementing IDataRecord means, the columns are accessible by column name, index, which is shown in the example.