Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate a dropdown menu with names of db tables...?

Status
Not open for further replies.

shadowspell

Programmer
Nov 24, 2004
6
US
Hi,

Just as one can populate a <select> tag with fields read from a table, can populating a <select> tag with table names read from a database also be done?
Thanks for any help, my book doesn't seem to address this.
Chris
~`^%
 
I think it would depend on the database and how it stores the naems. Certainly you can do this relatively easily in SQL server with the following query
Code:
SELECT Table_Name
FROM yourdatabasename.INFORMATION_SCHEMA.tables

Questions about posting. See faq183-874
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top