Results 1 to 3 of 3

Thread: Tabledef equivalent in ADO.NET

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Location
    London
    Posts
    26

    Tabledef equivalent in ADO.NET

    I want to populate a listbox with tables in my sql database. Is there another way I can achieve this without going through the dataset route?

    Thanks
    erimus

  2. #2
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    You can use a DataReader to read record by record in a loop and add items manually.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Location
    London
    Posts
    26

    Re: Tabledef equivalent

    Thanks Athley for your reply. I missed out a vital piece of information from the earlier email. What I really wanted to do was to populate the listbox with table names in my sql 2000 database. I have achieved this using sqldmo, and the old ADOX but wondered if there was any classes or methods within ADO.net that would achieve this objective.
    Thanks
    erimus

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