O'Reilly logo

Essential ADO.NET by Bob Beauchemin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.8. Streaming Data through a DataReader

SQL commands and stored procedures often produce sets of rectangular results in addition to output parameters and counts of rows affected by the commands. The results are rectangular in that each row (tuple) has the same number of columns and a column's data type does not vary from row to row. In accordance with the relational model, which mandates no support for multivalued data, columns usually contain only primitive data types. However, ADO.NET supports columns of type Object.

Managed providers retrieve rows and column values through the DataReader class. DataReader is composed of two standard interfaces—IDataReader and IDataRecord—plus data source-specific functionality. IDataReader contains methods ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required