Why Datareader is useful?

Showing Answers 1 - 8 of 8 Answers

Hariharan

  • Sep 13th, 2005
 

Data Reader is Read only version Data Set,Each record is returned as a Data Reader Object,ExecuteReader method acts directly on the database connection.

There are two versions of the data reader object:

OleDbDataReader and SqlDataReader.

  Was this answer useful?  Yes

Ali

  • Jul 21st, 2006
 

Well, Dataset is used for distributed environment where the data source is often disconnected and is not available..so we fetch data and store it in memory..overhead on memory(consider each request having more than 1000 records and there are thousands of request..)But Datareader as said above is used for connected environment so it provides greater efficiency by direct menipulating the data at server...Hence it is used where DB server and application have reliable connected media...eg web..you dont need to hold 1000 records in memory in this case....

  Was this answer useful?  Yes

Helper

  • Nov 2nd, 2007
 

Data Reader is used to go through the records in a particular order. It can be either forward order or backward order.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions