This lesson explains how to read data with a SqlDataReader object. Here are the objectives of this lesson:
本课解释了如何使用SqlDataReader对象读取数据。以下是本课的目标:
Learn what a SqlDataReader is used for.
Know how to read data using a SqlDataReader.
Understand the need to close a SqlDataReader.
学习SqlDataReader的用法
了解如何使用SqlDataReader读取数据
了解如何关闭SqlDataReader的必要性
Introduction
介绍
A SqlDataReader is a type that is good for reading data in the most efficient manner possible. You can *not* use it for writing data. SqlDataReaders are often described as fast-forward firehose-like streams of data.