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. Advertisements

  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. Advertisements

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. dna
    Replies:
    1
    Views:
    1,453
  2. J. Babe
    Replies:
    1
    Views:
    8,714
    Kevin Spencer
    Aug 15, 2003
  3. Fredrik Rodin

    Sort a datatable and create a new datatable

    Fredrik Rodin, Feb 16, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    9,374
    paul.mariotti
    Sep 28, 2007
  4. =?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,210
    =?Utf-8?B?Qmx1ZWZsb3dlcg==?=
    Apr 2, 2004
  5. Ersin Gençtürk
    Replies:
    1
    Views:
    4,284
    Ersin Gençtürk
    Oct 6, 2004
  6. Dmitry Kulinich
    Replies:
    4
    Views:
    1,285
    Dmitry Kulinich
    Feb 19, 2007
  7. Replies:
    0
    Views:
    832
  8. Steve
    Replies:
    4
    Views:
    602
    James Willmore
    Nov 28, 2003
Loading...