Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DataSet vs DataTable

0 views
Skip to first unread message

csharpula csharp

unread,
Sep 8, 2007, 1:04:26 PM9/8/07
to
Hello,
Could you please tell me the difference between DataSet and DataTable?
Thank u!

*** Sent via Developersdex http://www.developersdex.com ***

Smithers

unread,
Sep 8, 2007, 1:45:09 PM9/8/07
to
To simplify things, a DataSet contains multiple DataTables.

To compare things to a typical relational database, a DataTable would be
roughly equivalent to a table in a database - whereas a DataSet is in many
ways like a database. A DataSet can define DataRelations - which define the
relationship between DataTables, much like a foreign key relationship can be
set up between tables in a database. DataSets, themselves, contain no data.
DataSets contain DataTables (which is where any data actually resides),
DataRelations, etc, but no data.

If you only need one in-memory "table" - then you can create a DataTable and
use it without also having it reside within a DataSet.

-HTH

"csharpula csharp" <csha...@yahoo.com> wrote in message
news:uvy8Qpj8...@TK2MSFTNGP05.phx.gbl...

0 new messages