With GetSchema, I get all Access objects. How can I understand if the table is hidden?
This is a custom hidden table.
With GetSchema, I get all Access objects. How can I understand if the table is hidden?
This is a custom hidden table.
The MSysObjects system table stores a list of MS Access database objects, including and tables. In the MSysObjects table there is a Flags field. If the table has the attribute "Hidden", then the value in the Flags field = "8". Accordingly, you can specify the necessary search criteria in the query condition: SELECT [Name] FROM [MSysObjects] WHERE [Type]=1 AND [Flags]=8 .
Tested my old tools. Both BatchAccess and .batchAccessGUI work with .mdb made in Access 2013. And the good news for you is through ADOX, you can get table properties, among which is “Jet OLEDB: Table Hidden In Access”.
To work with ADOX, we connect "Microsoft ADO Ext. 2.8 for DDL and Security", then:
ADOX.Catalog adoxCatalog = new ADOX.CatalogClass(); adoxCatalog.Create(AConnectionString); ADOX.Table adoxTable = adoxCatalog.Tables[tablename] Then in the table's Properties collection find the desired property by name and take its value.
Source: https://ru.stackoverflow.com/questions/512907/
All Articles