What are the differences between Dataset and DataReader?

Answer Posted / eduardo belmonte

A ds (dataset) can be used when the connection is closed.
A dr (datareader) needs the connection open to be used.

A ds can be used to modify or delete or insert data in the
database.
A data reader can be used only to read data

A ds can let you access the info on any order at any time.
A dr lets you access the info only one time per item and
only in a sequential order.

A ds data can be loaded in longer time than a dr can be
loaded at.

A ds can contain separated and structured data from several
database tables.
A dr can contain data in one register per item, that
register can include data from serveral tables id the sql
select statement so indicates, but it has no separate
structure per table.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is application session?

588


How do you design a website with multilingual support in ASP.NET ?

636


What is request and response in asp.net?

599


Explain Areas in MVC?

725


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

665






What is the purpose of master page?

609


What does uri mean?

598


What does aspcompat="true" mean?

652


Can we have multiple master pages in asp net?

607


Describe the .net base class library.

620


What is the difference between c# and .net?

658


Explain the difference between the web config and machine config.

717


List the events in page life cycle.

635


What are cookies in asp.net?

685


Explain how can you debug your .net application?

620