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 are tuples?

541


What are the features of asp net?

512


What New Features comes with ASP.NET Web API 2.0?

545


What is the difference between page-level caching and fragment caching?

534


What is the difference between a cookie and a pixel?

484






Why web api is better than wcf?

556


Describe the disadvantage of cookies.

599


Explain global assembly cache.

575


explain code with multi inhertance

1648


Differentiate strong typing and weak typing

528


Which type of state management is provided by Query String in ASP.NET?

555


Give a few examples of page life cycle events.

673


Explain the difference between panel and groupbox classes using .net?

488


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

531


What are the Types of session management in ASP.NET

562