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 connection string?

525


How do you merge 2 datasets into the third dataset in a simple manner?

536


What is the difference between executenonquery () and executescalar ()?

486


Explain the two fundamental objects in ado.net?

503


What are all components of ADO.Net data provider?

607






Do you use stored procedure in ado.net?

544


What are the namespaces used in ADO.Net to connect to a database?

599


What is difference between sqldatareader and sqldataadapter?

485


What is ole in excel?

517


What is ado control?

524


Explain the basic use of "dataview" and explain its methods.

527


What is an orm, and why would you use one instead of plain old ado.net?

572


Define data access layer?

531


Which is faster sqldataadapter and sqldatareader?

498


Define atomicity?

573