Using Data Readers

Data readers let you read data from a data source field by field in a low-level way, and you use them when speed is an issue. You can create data readers only in code—there are no data reader objects in the toolbox. We'll take a look at data readers here in the ch10_04 example, which you can see at work in Figure 10.5. When the user clicks the Read Data button in this example, a data reader reads the data in the authors table field by field and we display that data in the text boxes you see in the figure.

Figure 10.5. The ch10_04 example.

There are four types of data readers—OleDbDataReader, SqlDataReader, OdbcDataReader, and ...

Get Microsoft® Visual C#® .NET 2003 Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.