Use a DataReader Instead of a DataSet


In general, the only times that a DataSet must be used in preference to a DataReader are:

  • When the data will be remoted (that is, sent as a disconnected package) to the client or a remote instance of the application or a component “for example, when using a web service that returns a DataSet .

  • When you need to retrieve and store more than one set of rows, and, optionally , the relationships between them.

A DataReader can be used as the source for data binding controls if required.




Professional ASP. NET 1.1
Professional ASP.NET MVC 1.0 (Wrox Programmer to Programmer)
ISBN: 0470384611
EAN: 2147483647
Year: 2006
Pages: 243

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net