Information schema Or Catalog views

G

Günther

Hello newsgroup!

Does Access have catalog views to get information about tables and their
columns contained in an *.mdb, which can be queried by SQL ??

Thanks in advance

Günther
 
D

Douglas J. Steele

Yes to tables (it's in the normally hidden MSysObjects table):

SELECT Name
FROM MSysObjects
WHERE Type IN (1, 4, 6)
ORDER BY Name;

Tables actually in the MDB have an object type of 1, linked tables have an
Object type of 6, and tables linked using ODBC (often referred to as
pass-through tables) have an object type of 4

No to columns.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top