Getting the table structure in ms access with SQL query?

ess picture ess · Dec 26, 2013 · Viewed 15.6k times · Source

How to get the table structure in MS Access with a SQL query?

Using the following query:

SELECT name FROM MSysObjects

Results in the following exception:

Exception: [Microsoft][ODBC Microsoft Access Driver] Record(s) cannot be read; no read permission on 'MSysObjects'.

Answer

FreeText picture FreeText · Apr 27, 2016

To resolve the permissions issue for MSysObjects, see these similar questions: no read permission on 'MSysObjects', or Run C# queries against (hidden) system tables in Access?