What is dataset and uses of dataset ?

Answer Posted / k.nagavani

DATASET:
The dataset is a in-memory representation of data.
DataSet is made up of a collection of DataTable objects.
It can be considered as a local copy of the relevant
portions of the database.
The data is persisted in memory and the data in it can be
manipulated and updated independent of the database. When
the use of this dataset is finished, changes can made back
to the central database for updating.
The data in dataset can be loaded from any valid
datasources like Microsoft SQL Server database, an Oracle
database or a Microsoft Access database.
USES:
1. You normally use datasets to hold results of database
queries, but you can also create them on the fly and
populate them programmatically.
2. The DataSet object has characteristics that make it
suitable for persisting application settings: It can hold
hierarchical data in the Tables collection, and you can use
the WriteXml() method to save the entire dataset into an
XML file with a simple call:

ds.WriteXml(strFileName,
XmlWriteMode.WriteSchema);
3. We can seperate data layer from presentation layer by
using class or dataset in .net 2.0.
4. The DataSet in .Net rocks, it provides so much
functionality for free, that it makes it the prefered data
transport mechanism between the presentation layer and the
buisiness layer, when dealing with a pure .Net technology
stack then DataSet's are the way to go.
5. DataSet has some powerful XML-related capabilities. For
example, you can serialize a DataSet into XML through its
WriteXml() method; conversely, you can populate a DataSet
from a properly formatted XML stream using the DataSet's
ReadXml() method.

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a ashx file?

548


What is fulltrust?

553


What is enableviewstate?

532


14. What are your Future Plans for Swatz Oils GROUP U.K?

1713


What is ispostback method in asp.net?

546






Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?

513


What are url fragments?

494


Which dll handles the request of .aspx page?

552


Which is the parent class of the ASP.NET server control?

533


How many types of cookies are there in asp.net?

526


To wrap up a call to a Web service the standard used is..?

534


Explain Life cycle of ASP.NET page when a request is made.

743


To redirect the user to another page which method do we use without performing a round trip to the client?

526


How does asp net store session ids by default?

521


How you can add an event handler?

567