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 Posted / kavitha

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 ?    35 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is serialization and de-serialization in .net? How can we serialize the dataset object?

518


What are different layers of ADO.Net?

588


Is it possible to load multiple tables in a Dataset?

529


What do you know about ADO.NET's objects and methods?

522


What are the advantages using ado.net?

537






How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?

569


What we do with the object of ado.net dataset after using it?

524


What are the features of ado.net?

505


What is Serialization in .NET? what are the types of Serialization?

555


What is ado asp?

515


What does datareader object do?

539


What two types of data providers does ADO.NET supply? What determines which one you should use?

539


How to maintain the relation between two tables in ADO.NET?

540


What is ado code?

504


Describe briefly an ADO.NET Dataset ?

551