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

Equivalent of Access Tabledefs Collection

Status
Not open for further replies.

BobLoblaws

Programmer
Nov 20, 2001
149
CA
I am wondering what the equivalent of the Access tabledefs collection is in SQL Server.

Ideally, I would like to do a 'SELECT * FROM tabledefs' that returns all the tables in a database.
 
Try this SQL command:
Code:
USE (database_name)
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'Base Table'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top