Multiple schema
Multiple schema
The default schema is "public", and the setoption command apparently can only set this to one specific schema. Is there any way to be able to access all schema, or a specific list of schema at the same time?
You can execute SET SEARCH_PATH command to use several schemas. For example:
Code: Select all
SQLConnection.ExecDirect('SET SEARCH_PATH TO public, schema2');
Doesn't seem to make any difference. I run
and MyList still only contains the tables and views that are in the PUBLIC schema. Is there some other setting I need to use as well?
--Rob.
Code: Select all
SQLConnection.ExecuteDirect('SET SEARCH_PATH TO public, myschema');
SQLConnection.GetTableNames(MyList);
--Rob.