Create a Datatable from a SQL datatable column shema?

Discussion in 'ASP .Net' started by jg, Aug 17, 2004.

  1. jg

    jg Guest

    I need to create a DataTable object, but I dont want to add columns
    programatically, the DataTable should have columns based on a Table in my
    SQL database.
    How can I create a DataTable with column structure based on a SQL database?

    Thanks
     
    jg, Aug 17, 2004
    #1
    1. Advertising

  2. use dataadapter and dataset. fill the dataset with data from table in the
    database.






    "jg" wrote:

    > I need to create a DataTable object, but I dont want to add columns
    > programatically, the DataTable should have columns based on a Table in my
    > SQL database.
    > How can I create a DataTable with column structure based on a SQL database?
    >
    > Thanks
    >
    >
    >
     
    =?Utf-8?B?U2hhaWxlc2ggSmFubnU=?=, Aug 17, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. J. Babe
    Replies:
    1
    Views:
    8,356
    Kevin Spencer
    Aug 15, 2003
  2. Fredrik Rodin

    Sort a datatable and create a new datatable

    Fredrik Rodin, Feb 16, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    9,059
    paul.mariotti
    Sep 28, 2007
  3. =?Utf-8?B?Qmx1ZWZsb3dlcg==?=

    Casting DataTable to class inherit from DataTable

    =?Utf-8?B?Qmx1ZWZsb3dlcg==?=, Apr 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,001
    =?Utf-8?B?Qmx1ZWZsb3dlcg==?=
    Apr 2, 2004
  4. Dmitry Kulinich
    Replies:
    4
    Views:
    1,080
    Dmitry Kulinich
    Feb 19, 2007
  5. Replies:
    0
    Views:
    584
Loading...

Share This Page