The following
line of code specifies the parameters for the OpenSchema Method:
Set obRecordset= obConnection.OpenSchema(adSchemaColumns, Array(Empty, Empty, "SASUSER.SHOES"))
-
For the first parameter, which is Query Type, the sample code specifies
adSchemaColumns. adSchemaColumns returns information for all columns
on all data sets in the open connection.
-
For the second parameter, which is Criteria, the sample code passes
in an array that limits the returned information to just SASUSER.SHOES
columns. To achieve this result, the array specifies
a nonempty value for the TABLE_NAME, which is the third constraint
available for adSchemaColumns. (adSchemaColumns has four available
constraints: TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, and COLUMN_NAME.)
Tip
To return
metadata for all data sets in the open connection, write similar code
and specify adSchemaTables (instead of adSchemaColumns) as the value
of the QueryType parameter.