O'Reilly logo

Sams Teach Yourself ADO.NET in 24 Hours by Paul Bertucci, Jason Lefebvre

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

Hour 8. Using the DataReader and DataAdapter

In Hour 6, “Retrieving Data from the Data Source,” you saw how to use ADO.NET to connect to a data source, fetch some records, place them into a DataSet using the DataAdapter, and display them on a Web form. In this hour, you'll see an alternative—and in many instances more efficient—method of retrieving data. Specifically, in this hour, you'll learn how to

  • Bind the DataReader object to Web controls

  • Step through the results of a DataReader object

  • Determine when to use a DataAdapter versus a DataReader

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