Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Diff B/W DataSet vs DataTable

Answer Posted / umarali1981

DataTable:

1.Meaning: A DataTable is an in-memory representation of a
single database table which has collection of rows and columns

2.Number of rows retrieved at a time:DataTable fetches only
one TableRow at a time

3.Provision of DataRelation Objects:As DataTable is a single
database table, so there is no DataRelation object in it.

4.Enforcing Data Integrity:In DataTable, there is no
UniqueConstraint and ForeignKeyConstraint objects available.

5.DataSource can be Serialized or Not:In DataTable,
DataSource cannot be serialized.

6.To know the example for DataTable, please try the URL:

http://www.dotnetperls.com/datatable

DataSet:

1.Meaning:A DataSet is an in-memory representation of a
database-like structure which has collection of DataTables.

2.Number of rows retrieved at a time:DataSet can fetch
multiple TableRows at a time

3.Provision of DataRelation Objects: In DataSet, DataTable
objects can be related to each other with DataRelation objects.

4.Enforcing Data Integrity:In DataSet, data integrity is
enforced by using the UniqueConstraint and
ForeignKeyConstraint objects.

5.DataSource can be Serialized or Not:DataSet is serialized
DataSource .That is why web services can always returns
DataSet as the result but not the DataTables.

6.To know the example for DataSet, please try the URL:
http://www.dotnetperls.com/dataset

Reference:
http://onlydifferencefaqs.blogspot.in/2012/08/difference-between-datatable-and-dataset.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are two types of transaction supported by ado.net?

980


What is a data control clerk?

1024


How to load multiple tables into a dataset?

1033


What is difference between sqldatareader and sqldataadapter?

919


What is the difference between Dataset. clone and Dataset.copy?

1026


Difference between sqlcommand and sqlcommandbuilder?

1096


Explain ado.net features? Benefits? Drawbacks?

1027


Describe datareader object of ado.net with example.

910


What is ado recordset?

966


How do you connect to sql server database without using sqlclient?

1087


What are the ado.net components?

1007


What is the full form of ado.net?

971


What is connection pooling and what is the maximum pool size in ado.net connection string?

935


what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?

997


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

941