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
Printable View
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
You can use a DataReader to read record by record in a loop and add items manually.
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