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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show tables in database

Status
Not open for further replies.

shawkz

Programmer
Oct 25, 2005
84
0
0
GB
Hi is it possible to run an sql query which displays all table names in a database?

Kindest regards,

SHawkz
 
I do not know of any command that works across all platform, but most platforms that I have worked with (Oracle, Teradata, SQL Server) all have a system database which you can query to get the names of all tables.

What platform are you looking to accomplish this with?
 
Im just using asp, just want to list what tables there are against a database, simlar to list or fields against a table..

select top 1 * from company

regards,

SH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top