Resources

CUBES Schema Rowset

The CUBES schema rowset returns metadata about the cubes that can be accessed by the provider. Each row in the CUBES schema rowset corresponds to one cube that is available in the provider.

The following table describes the columns that are available in the CUBES schema rowset.

Column Name Type Indicator Mapped Value Restrictions
Supported?
CATALOG_NAME DBTYPE_WSTR Name of the catalog that contains this cube. Yes
SCHEMA_NAME DBTYPE_WSTR Name of the schema that contains this cube. Yes
CUBE_NAME DBTYPE_WSTR Name of this cube. Yes
CUBE_GUID DBTYPE_GUID GUID of this cube. No
CREATED_ON DBTYPE_DBTIMESTAMP Date and time this cube was created. No
LAST_SCHEMA_UPDATE DBTYPE_DBTYPESTAMP Date and time this cube's schema was last updated. No
SCHEMA_UPDATED_BY DBTYPE_WSTR User ID of the person who last updated this cube's schema. No
LAST_DATA_UPDATE DBTYPE_DBTIMESTAMP Date and time this cube was last updated. No
DATA_UPDATED_BY DBTYPE_WSTR User ID of the person who last updated this cube. No
DESCRIPTION DBTYPE_WSTR Description of this cube. No

Restricting Returned Rows

Restrictions enable an OLE DB consumer to restrict the rows that are returned in a schema rowset by IDBSchemaRowset::GetRowset. A restriction is a value for a specific column. When a restriction is passed to IDBSchemaRowset::GetRowset, all rows that are returned in the schema rowset must match the restriction value on the specified column. Restriction values do not support pattern matching or wildcards. For example, the restriction value D_F matches D_F but not DEF.

An OLE DB consumer can programmatically discover the columns on which the providers support restrictions by calling IDBSchemaRowset::GetSchemas.

Note: For definitions of the type indicators, see "Type Indicators" in Microsoft's OLE DB specification documentation.