ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  VB.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is the Difference between Dataset and Datareader?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the Difference between Dataset and Datareader?
Answer
# 1
Datareader is forward and read only recordset in which the 
data manipultions are cant carried. but dataset is the 
miniature of database in which the datas can be accessed 
randomly and data manipulations can be carried
 
Is This Answer Correct ?    14 Yes 1 No
Manikandan
 
  Re: What is the Difference between Dataset and Datareader?
Answer
# 2
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.

The dataset maintains the relationships among the 
datatables inside
it. We can manipulate the realational data as XML using 
dataset.We can do transactions (insert/update/delete) on 
them and finally the modifications can be updated to the 
actual database. This provides impressive flexibility to 
the application but with the cost of memory space. DataSet 
maintains the original data and the modified data 
seperately which requires more memory space. If the amount 
of data in the dataset is huge 
then it will reduce the applications performance 
dramatically.

The following points will improve the performane of a 
dataset...

1. Don't use the commandbuilder to generate the sql 
statements.
Though it reduces the development time the query generated

by the command builder will not be always as required. For 
example
To update the details of an author table the command
 
Is This Answer Correct ?    16 Yes 1 No
Khawar Rizvi
 
 
 
  Re: What is the Difference between Dataset and Datareader?
Answer
# 3
Dataset is cache of records retrieve from data source.
Datareader is used to retrieve data from datasource.

1.Using Datareader we can read the data readnly,forwordonly 
basis.
2.Only one record in a memmory at a tme  
3.Faster
4.Doesnot hold any data
5.Data can not be transfer to datasource
Wher as in Dataset
1. we can read and write and allow us to navigate through 
the records forword and backwords.
2.Pulls the records from the datasource and saves in IIS 
memmory.
3.Slower
4.Holds datatables and has the information about
relationship between those tbes.
5.Data can be transfer to datasource
 
Is This Answer Correct ?    11 Yes 0 No
Anitha
 
  Re: What is the Difference between Dataset and Datareader?
Answer
# 4
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 ?    4 Yes 1 No
Vasudha.g.n
 

 
 
 
Other VB.NET Interview Questions
 
  Question Asked @ Answers
 
What are the similarities between class and structure? Ksb5
sir how i can calculate the value of two-textbox of gridview and show result in textbox within gridview in asp.net with vb.net..plz sir reply me Biz-Technology1
How do you do multithreading application in VB ? Satyam4
What is an indexed property?  1
Display a roll having minimum marks in two subjects? Patni1
I want to reduce my CPU Usage when I am querying the Database for records. Now my Winform App(in VB.Net) suddenly Jumps to 100% CPU Usage when i query for records from sql server database. I want this Usage to be less. Any help is appreciated  2
What is DLL hell?  2
what are the difference between An input box and Message box ..?  3
How does you get record no from 5 to 15 from a dataset of 100 records? ABC2
linex will support dot net? Phoenix-Technologies4
In Datagrid after adding row, how you will assign the value for each cell to currently added new row?  1
how to connect crystal report with vb.net ? Patni2
What is the Difference between Dataset and Datareader?  4
how to create views in sql with syntax and example  5
how to call a list box on the text if some one send me the code for it  1
What is the difference between Dataset and Recordset?  7
Advantage of vb.net over vb ? Digital-GlobalSoft5
Difference between VB dll and assemblies in .NET ? Digital-GlobalSoft5
How do you declare static variable and how it is declared and what is its lifetime? Infosys3
How do you rate yourself in .NET ? Infosys3
 
For more VB.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com