What is the Difference between Dataset and Datareader?
Answer Posted / vasudha.g.n
DataReader
Datareader is like a forward only recordset. It fetches one
row at a time so very less Network Cost compare to DataSet
(Fetches all the rows at a time). DataReader is readonly so
we cannot do any transaction on them. DataReader will be
the best choice where we need to show the data to the user
which requires no transaction ie reports. Due to DataReader
is forward only we cannot fetch the data randomly. .NET
Dataproviders optimizes the datareaders to handle the huge
amount of data.
DataSet
DataSet is always a bulky object that requires lot of
memory space compare to DataReader. We can say the dataset
as a small database coz it stores the schema and data in
the application memory area. DataSet fetches all data from
the datasource at a time to its memory area. So we can
traverse through the object to get required data like
qureying database.
| Is This Answer Correct ? | 8 Yes | 7 No |
Post New Answer View All Answers
What is the difference between vb 6 and vb.net?
What do you mean by serialization and deserialization?
What are the advantages of VB.NET?
Explain what observations between vb.net and vc#.net?
What are the different types of applications supported in .net (or) .net framework?
Explain managed code?
what is intermediate language?
Explain jit?
thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net
What are jagged arrays ?
What is the source code for display the picture in button click event?
Explain nested classes?
Define naming convention?
i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate
What is strong name in .net assembly?