Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Keyur Narkhi62 reputationPosted Apr 6, 2012, 12:22 AM EDT
Below are the difference
DataAdapter
- It is used to retrieve data from database and place it into the dataset.
- It is used the Connection object ,to connect database and use command object to get the data.
DataReader
- this is also used for getting the data.It will read single row at a time.It is used mainly for,when you want to display data.
- It will increases the performance because it will fetch one row at a time in memory.
Thanks
MuthuMari MRank #5,738 · 288 reputationPosted Apr 6, 2012, 12:32 AM EDT
1.DataReader - we can read single row at a time
2. Connected Architecture
3.Data Reader is forward only & Readonly
only,it keeps single row at a time
data adapter :
DataAdapter - We can Read multiple rows at a time
Disconnected Architecture
DataAdapter is Bridge between Database and DataSet.
it is a multipurpose object ie, we can insert, update, delete throught dataadapter
Thanks.
If this post is useful then mark it as "Accepted Answer"
VulpesRank #55 · 29.2K reputationPosted Apr 6, 2012, 12:56 AM EDT