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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ADO.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
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
explain connection less and with connection?diference 
between data reader,data set,data adapter? can we use data 
reader,data set in a single application? if yes explain 
with simple code,if no explain?
 Question Submitted By :: Raghu_113
I also faced this Question!!     Rank Answer Posted By  
 
  Re: explain connection less and with connection?diference between data reader,data set,data adapter? can we use data reader,data set in a single application? if yes explain with simple code,if no explain?
Answer
# 1
in connection less architecture connection to the database
need  not be persist till the end of the process.after
fetching the data form database it is pushed in database
object called  dataset and connection object need not to be
persist and its closed. and the data will be available from
the dataset.


data reader - ADO.NET DataReader to retrieve a read-only,
forward-only stream of data from a database. Using the
DataReader can increase application performance and reduce
system overhead because only one row at a time is ever in
memory.Connection to the database is maintained till the
end.it is simply like an ado object.it contains only one
table at a time.it is much  faster than dataset.


dataset - is used to hold the data from the database along
with their relation. it is connection less object.it also
persist the value which  are retrieved form the database.
it is a bit bulky object.it gives both forward and backward
access to data. it uses XML.it can consist more than one
table.we have atrribtes for the dataset 


dataset
    datatable
       datarow
        datacolumn

an adapter object is used to fill the data from the   database.

dataadapter - dataadapter is a database object which
used  to fill the dataset object with data from the database.
 
Is This Answer Correct ?    2 Yes 0 No
Kavitha
 
  Re: explain connection less and with connection?diference between data reader,data set,data adapter? can we use data reader,data set in a single application? if yes explain with simple code,if no explain?
Answer
# 2
above exp. is excellent for connection less and connection 
oriented.
data adapter performs almost five steps
1- open(create)connection
2- fatch the data
3- generate xml file of data
4- fill xml data file into the dataset by fill()method
5- closed the connection.
 
Is This Answer Correct ?    0 Yes 0 No
Prabhat Saxena(lmp)
 
 
 

 
 
 
Other ADO.NET Interview Questions
 
  Question Asked @ Answers
 
What is ODP.NET? Microsoft1
How to add Primary key in DataSet  3
Advantage of ADO.Net? TCS2
how to keep track of index in listbox items.  2
What is the difference between a Dataset and DataReader? Can dataReader hold data from multiple tables? Fulcrum-Logic1
What are the two fundamental objects in ADO.NET? Ksb2
Explain the ADO . Net Architecture ?  2
About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data ? MMTS1
What is the use of parameter object? Ksb3
How to get oledb connection?  3
What is the provider and namespaces being used to access oracle database? Microsoft2
What are the steps in connecting to database ? Microsoft1
what is data Adapter? IBM13
How to call the SQL commands asynchronously in ADO.NET version 2.0 DELL1
what is sql Injection? Microsoft4
what is bubbled event can u pls explain Wipro2
what is typed and untyped dataset  2
Whate are different types of Commands available with DataAdapter ?  1
Call a stored procedure from ado.net and pass parameter to it ? Keane-India-Ltd5
What is the key feature of ADO.NET compared to ADO ? TCS2
 
For more ADO.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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