Click here to Skip to main content
16,004,836 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Anyone know this?

what is the datareader and datadapter with example and its connections architecture
Please explain me with example..

thanks in advance.
Posted
Updated 11-Nov-11 18:46pm
v2

These questions look ripped out of the context of the concepts in question, so answering by giving some "definition" or explanation without other related concepts cannot help anyone. You need to get the whole picture.

See, for example, this CodeProject article with really simple source code samples: Using ADO.NET for beginners[^].

Learn the concepts in more detail, you will need it. Start here:
http://msdn.microsoft.com/en-us/library/h43ks021%28v=VS.100%29.aspx[^],
http://msdn.microsoft.com/en-us/library/e80y5yhx.aspx[^],
http://msdn.microsoft.com/en-us/library/aa302325.aspx[^].

—SA
 
Share this answer
 
Datareader and DataAdapter are the objects of ADO.NET

Datareader:
it is connected architecture. You need to keep connection open while fetching records from database. It will fetch one record at a time. It is forward and readonly
here[^] is example of datareader.

Dataadapter:
it is disconnected architecture. You not need to keep connection open while fetching records from database.
example[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900