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

Return names of all tables in database: SQL

Status
Not open for further replies.

mkingrey

Programmer
Apr 12, 2006
5
US
I would like to return the names of all tables in my database using SQL. I'm using an Access database. Is there a way to do this?

Thanks
 
Run this SQL
Code:
SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Type)=1));

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
I'd replace this:
WHERE (((MSysObjects.Type)=1));
with this:
WHERE MSysObjects.Type In (1, 4);

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top