Results 1 to 4 of 4

Thread: What is a DataSet?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2003
    Location
    C:\Windows\Microsoft.NET\Framework
    Posts
    574

    What is a DataSet?

    What is the DataSet object I have spotted now a couple of times? Is this the same as the ADO recordset?

  2. #2
    Addicted Member
    Join Date
    Aug 1999
    Posts
    164
    DataSets can have multiple dataTables. DataTables have multiple datacolumns and datarows, etc. I think that DataSets are the like the "ADO.NET recordsets", but I think DataTables relate more directly to recordsets and a DataSet is a collection of DataTables.

    ------------------------------

    The DataSet, which is an in-memory cache of data retrieved from a database, is a major component of the ADO.NET architecture. The DataSet consists of a collection of DataTable objects that you can relate to each other with DataRelation objects. You can also enforce data integrity in the DataSet by using the UniqueConstraint and ForeignKeyConstraint objects. For further details about working with DataSet objects, see Creating and Using DataSets.

    While DataTable objects contain the data, the DataRelationCollection allows you to navigate though the table hierarchy. The tables are contained in a DataTableCollection accessed through the Tables property. When accessing DataTable objects, note that they are conditionally case-sensitive. For example, if one DataTable is named "mydatatable" and another is named "Mydatatable", a string used to search for one of the tables is regarded as case-sensitive. However, if "mydatatable" exists and "Mydatatable" does not, the search string is regarded as case-insensitive. For more information about working with DataTable objects, see Creating a DataTable.

    A DataSet reads and writes data and schema as XML documents. The data and schema can be transported across HTTP and used by any application, on any platform that is XML-enabled. You can save the schema as an XML schema with the WriteXmlSchema method, and the schema and data can be saved using the WriteXml method. To read an XML document that includes both schema and data, use the ReadXml method.
    -Shurijo

  3. #3
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    Similar to a disconnected recordset. Doesn't have MoveNext, MoveFirst, EOF, BOF, etc.

  4. #4
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    what's a good site for ado and ado.net tutorials?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width