Could you help me understand in what conditions should we use DataReader or DataSet? [Resolved]

Posted by Yogi1990 under C# on 7/1/2011 | Points: 10 | Views : 1370 | Status : [Member] | Replies : 1
Could you help me understand in what conditions should we use DataReader or DataSet?

Yogi


Responses

Posted by: Srinath on: 7/1/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
* when we are using database operations only for taking data and displaying the resords and doesnot involve any insertion and updation and deletion statements and other manipulations.that is when we are reading the data only ,then we have to use the datareader.data reader supports connected architecture,it is forward only.here connected architecture means the database connection is open until the dabse operation are performed.

*data adapter is used with insertion,updation,deletion statement and using it as a return type from a web service,we have to use the data set.data adapter automatically opens and closes the connectin when required.

Have a nice day.....srinath kaithoju

Srinath.K

Yogi1990, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response