1
Answer

Retrieving all tables names from Access Databse.

NeCroFire

NeCroFire

17y
2.4k
1
I want to retrieve all the table names from a access database to check that the table that should be there are there. I also would like to retrieve all the column names foreach table to make sure that is correct.

I have been searching for about an hour now and I can't find what I'm specifically looking for... or maybe I'm just using the wrong key words. ;)

Anyway. Please help.

Thanks
Answers (1)
0
Vijaya Kadiyala

Vijaya Kadiyala

NA 2.4k 258.5k 17y

Hi

Use the below query:

SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") AND
(Left$([Name],4) <> "Msys") AND (MSysObjects.Type)=1 ORDER BY MSysObjects.Name;

Thanks -- Vj

http://dotnetvj.blogspot.com