Results 1 to 3 of 3

Thread: What is the difference between using Table with Dataset or without it ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    142

    What is the difference between using Table with Dataset or without it ?

    In this code I used Table directly without using DataSet. What is the difference between using Table with dataset or without it.
    vb Code:
    1. Dim sql As String = " Select  NameP from Table1 "
    2.         Dim dp As New OleDbDataAdapter(sql, conn)
    3.         Dim Table1 As New DataTable
    4.         dp.Fill(Table1)
    5.         Form1.DataGridView1.DataSource = Table1

  2. #2
    PowerPoster make me rain's Avatar
    Join Date
    Sep 2008
    Location
    india/Hubli
    Posts
    2,208

    Re: What is the difference between using Table with Dataset or without it ?

    answer is not straight forward

    because it depends on what you wanted to do
    for example here you are populating a datagrid there it ends
    which requires a table

    in fact the dataset is also contains t table, but it has some more extension of functionality
    for which you need to go through the object model & method of the

    ADO.net

    just google & see in MSDN which is so heshup & meshup
    not so easy to understand in one go
    The averted nuclear war
    My notes:

    PrOtect your PC. MSDN Functions .OOP LINUX forum
    .LINQ LINQ videous
    If some one helps you please rate them with out fail , forum doesn't expects any thing other than this

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: What is the difference between using Table with Dataset or without it ?

    There isn't enough difference between the two to bother trying to figure out the difference between the two. A dataset can hold multiple datatables. If you only need one table, then there pretty much isn't any need for a dataet.
    My usual boring signature: Nothing

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