Board index » delphi » Reading the definition of a view
Brian Cryer
![]() Delphi Developer |
Reading the definition of a view2004-05-05 06:57:52 PM delphi72 I'm working on a project to help document our Access databases, front end is Delphi. I haven't been able to find a way of extracting the definition of views (or queries as Access prefers to call them) other than by interrogating the MSysQueries table directly. The disadvantage of this is that I need to grant read permissions on this system table manually first - which isn't really viable as a general purpose tool. I'm using TADOConnection.OpenSchema to get a list of tables and views, and also the fields that a view exposes, but I don't think this gives an option to return how the view is constructed. Does anyone know of an alternative approach to obtaining how a view is constructed other than going to MSysQueries directly? Thanks, Brian. |