J.3. Connection.OpenSchema Method Options

The following tables list the values you can specify for the Command.OpenSchema method's schema and restrictions argument.

J.3.1. Schema Argument Values

The Schema argument specifies the type of information to return and its values are defined in the following table.

We have included only those values that have meaning in Access. The four remaining values, adSchemaActions, adSchemaCommands, adSchemaFunctions, and adSchemaSets relate specifically to the Microsoft OLE DB Provider for OLAP Services library. For more information about these values, refer to the Microsoft KnowledgeBase.

OptionValueDescription
AdSchemaAsserts0Returns the constraints defined in the catalog. Unsupported by the Jet provider.
AdSchemaCatalogs1Returns the catalogs that are accessible from the database. Unsupported by the Jet provider.
AdSchemaCharacterSets2Returns the character sets defined in the catalog. Unsupported by the Jet provider.
AdSchemaCheckConstraints4Returns the check constraints (validation rules) defined in the catalog.
AdSchemaCollations3Returns the sort orders defined in the catalog. Unsupported by the Jet provider.
AdSchemaColumnPrivileges13Returns the privileges on columns that are available to, or granted by, a given user. Unsupported by the Jet provider.
AdSchemaColumns4Returns the columns of tables and views that are accessible to a given user.
adSchemaColumnsDomainUsage11Returns the columns that are dependent on a domain that is owned by a given user. Unsupported by the Jet provider.
adSchemaConstraintColumnUsage6Returns the columns used by referential constraints, unique constraints, check constraints, and assertions.
adSchemaConstraintTableUsage7Returns the tables that are used by referential constraints, unique constraints, check constraints, and assertions for a given user. Unsupported by the Jet provider.
adSchemaCubes32Returns information about the available cubes (multidimensional data) in a schema (or the catalog, if the provider does not support schemas). Unsupported by the Jet provider.
adSchemaDBInfoKeywords30Returns a list of provider-specific keywords
adSchemaDBInfoLiterals31Returns a list of provider-specific literals (quotes and escape characters) used in text commands.
adSchemaDimensions33Returns information about the dimensions in a cube; one row per dimension. Unsupported by the Jet provider.
adSchemaForeignKeys27Returns the foreign key columns defined in the catalog.
adSchemaHierarchies34Returns information about the hierarchies available in a cube dimension. Unsupported by the Jet provider.
adSchemaIndexes12Returns the indexes defined in the catalog.
adSchemaKeyColumnUsage8Returns the columns that are defined in the catalog as keys.
adSchemaLevels35Returns information about the levels available in a cube dimension. Unsupported by the Jet provider.
adSchemaMeasures36Returns information about the available cube measures. Unsupported by the Jet provider.
adSchemaMembers38Returns information about the available cube members. Unsupported by the Jet provider.
adSchemaPrimaryKeys28Returns the primary key columns defined in the catalog.
adSchemaProcedureColumns29Returns information about the columns in stored procedures. Unsupported by the Jet provider.
adSchemaProcedureParameters26Returns information about the parameters and return codes of stored procedures. Unsupported by the Jet provider.
adSchemaProcedures16Returns the procedures defined in the catalog. Unsupported by the Jet provider.
adSchemaProperties37Returns information about the available properties for each level of the cube dimension. Unsupported by the Jet provider.
adSchemaProviderSpecific−1Returns schema information for a provider that defines its own nonstandard schema queries.
adSchemaProviderTypes22Returns the base datatypes supported by the provider.
adSchemaReferentialConstraints9Returns the referential constraints (relationships) defined in the catalog.
adSchemaSchemata17Returns the schemas (database objects) that are owned by a given user. Unsupported by the Jet provider.
adSchemaSQLLanguages18Returns the levels of ANSI SQLconformance, options and dialects supported in the catalog. Unsupported by the Jet provider.
adSchemaStatistics19Returns the catalog statistics.
adSchemaTableConstraints10Returns the table constraints (validation rules) defined in the catalog.
adSchemaTablePrivileges14Returns the privileges on tables that are available to, or granted by, a given user. Unsupported by the Jet provider.
adSchemaTables20Returns the tables and views defined in the catalog.
adSchemaTranslations21Returns the character translations defined in the catalog. Unsupported by the Jet provider.
adSchemaTrustees39Returns the users and groups defined in the catalog.
adSchemaUsagePrivileges15Returns the USAGE privileges on objects that are available to, or granted by, a given user. Unsupported by the Jet provider.
adSchemaViewColumnUsage24Returns the columns included in views. Unsupported by the Jet provider.
adSchemaViews23Returns the views defined in the catalog.
adSchemaViewTableUsage25Returns the tables included in views. Unsupported by the Jet provider.

J.3.2. Restrictions Argument Values

The optional Restrictions parameter allows you to filter the output. For example, you can filter the recordset to return only a single table or view. The available values are listed in the following table.

OptionConstraint columns
AdSchemaAssertsCONSTRAINT_CATALOG CONSTRAINT_SCHEMA
 CONSTRAINT_NAME
AdSchemaCatalogsCATALOG_NAME
AdSchemaCharacterSetsCHARACTER_SET_CATALOG
 CHARACTER_SET_SCHEMA CHARACTER_SET_NAME
AdSchemaCheckConstraintsCONSTRAINT_CATALOG
 CONSTRAINT_SCHEMA CONSTRAINT_NAME
AdSchemaCollationsCOLLATION_CATALOG
 COLLATION_SCHEMA COLLATION_NAME
AdSchemaColumnPrivilegesTABLE_CATALOG
 TABLE_SCHEMA

TABLE_NAME

COLUMN_NAME

GRANTOR

GRANTEE
AdSchemaColumnsTABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME

COLUMN_NAME
AdSchemaColumnsDomainUsageDOMAIN_CATALOG

DOMAIN_SCHEMA

DOMAIN_NAME

COLUMN_NAME
AdSchemaConstraintColumnUsageTABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME

COLUMN_NAME
AdSchemaConstraintTableUsageTABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME
AdSchemaCubesCATALOG_NAME

SCHEMA_NAME

CUBE_NAME
AdSchemaDBInfoKeywords<None>
AdSchemaDBInfoLiterals<None>
AdSchemaDimensionsCATALOG_NAME

SCHEMA_NAME

CUBE_NAME

DIMENSION_NAME

DIMENSION_UNIQUE_NAME
AdSchemaForeignKeysPK_TABLE_CATALOG

PK_TABLE_SCHEMA

PK_TABLE_NAME

FK_TABLE_CATALOG

FK_TABLE_SCHEMA

FK_TABLE_NAME
AdSchemaHierarchiesCATALOG_NAME

SCHEMA_NAME

CUBE_NAME

DIMENSION_UNIQUE_NAME

HIERARCHY_NAME

HIERARCHY_UNIQUE_NAME
AdSchemaIndexesTABLE_CATALOG

TABLE_SCHEMA

INDEX_NAME

TYPE

TABLE_NAME
AdSchemaKeyColumnUsageCONSTRAINT_CATALOG

CONSTRAINT_SCHEMA

CONSTRAINT_NAME

TABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME

COLUMN_NAME
AdSchemaLevelsCATALOG_NAME

SCHEMA_NAME

CUBE_NAME

DIMENSION_UNIQUE_NAME

HIERARCHY_UNIQUE_NAME

LEVEL_NAME

LEVEL_UNIQUE_NAME
AdSchemaMeasuresCATALOG_NAME

SCHEMA_NAME

CUBE_NAME

MEASURE_NAME

MEASURE_UNIQUE_NAME
AdSchemaMembersCATALOG_NAME

SCHEMA_NAME

CUBE_NAME

DIMENSION_UNIQUE_NAME

HIERARCHY_UNIQUE_NAME

LEVEL_UNIQUE_NAME

LEVEL_NUMBER

MEMBER_NAME

MEMBER_UNIQUE_NAME

MEMBER_CAPTION

MEMBER_TYPE

Tree operator (For more information, see the OLE DB for OLAP documentation.)
AdSchemaPrimaryKeysPK_TABLE_CATALOG

PK_TABLE_SCHEMA

PK_TABLE_NAME
AdSchemaProcedureColumnsPROCEDURE_CATALOG

PROCEDURE_SCHEMA

PROCEDURE_NAME

COLUMN_NAME
AdSchemaProcedureParametersPROCEDURE_CATALOG

PROCEDURE_SCHEMA

PROCEDURE_NAME

PARAMETER_NAME
AdSchemaProceduresPROCEDURE_CATALOG

PROCEDURE_SCHEMA

PROCEDURE_NAME

PROCEDURE_TYPE
AdSchemaPropertiesCATALOG_NAME

SCHEMA_NAME

CUBE_NAME

DIMENSION_UNIQUE_NAME

HIERARCHY_UNIQUE_NAME

LEVEL_UNIQUE_NAME

MEMBER_UNIQUE_NAME

PROPERTY_TYPE

PROPERTY_NAME
AdSchemaProviderSpecific<Provider specific>
AdSchemaProviderTypesDATA_TYPE BEST_MATCH
AdSchemaReferentialConstraintsCONSTRAINT_CATALOG

CONSTRAINT_SCHEMA

CONSTRAINT_NAME
AdSchemaSchemataCATALOG_NAME

SCHEMA_NAME

SCHEMA_OWNER
AdSchemaSQLLanguages<None>
AdSchemaStatisticsTABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME
AdSchemaTableConstraintsCONSTRAINT_CATALOG

CONSTRAINT_SCHEMA

CONSTRAINT_NAME

TABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME

CONSTRAINT_TYPE
AdSchemaTablePrivilegesTABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME

GRANTOR

GRANTEE
AdSchemaTablesTABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME

TABLE_TYPE
AdSchemaTranslationsTRANSLATION_CATALOG

TRANSLATION_SCHEMA

TRANSLATION_NAME
AdSchemaTrustees<None>
AdSchemaUsagePrivilegesOBJECT_CATALOG

OBJECT_SCHEMA

OBJECT_NAME

OBJECT_TYPE

GRANTOR

GRANTEE
AdSchemaViewColumnUsageVIEW_CATALOG

VIEW_SCHEMA

VIEW_NAME
AdSchemaViewsTABLE_CATALOG

TABLE_SCHEMA

TABLE_NAME
AdSchemaViewTableUsageVIEW_CATALOG

VIEW_SCHEMA

VIEW_NAME

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.234.114