In addition to the CubeDef object, Microsoft® ActiveX® Data Objects (ADO) provides the OpenSchema method for the connection object. To use this method to get schema information about multidimensional and data mining meta data, use the following query types:
Restriction columns enable the returned recordset of an OpenSchema function call to be filtered by certain constraints. For any given schema rowset, a number of restrictions may be supported. For example, the MINING_MODELS schema rowset supports the following restriction columns:
To use a particular column (or set of columns), build an array of strings that corresponds to the list of restriction column in their order. For instance, to retrieve a list of all of the mining models in the FoodMart 2000 database that use the Microsoft Decision Trees algorithm, construct the following array in Microsoft Visual Basic®:
Array("FoodMart 2000", Empty, Empty, Empty, Empty, "0")
Each element in the array corresponds to an element in the restriction columns list. The first, "FoodMart 2000," specifies that all of the records returned should be members of the FoodMart 2000 database (that is, catalog). This is because the MODEL_CATALOG is the first element in the restriction columns. The next four elements are built as empty and specify that no restrictions should be placed on the returned records based upon their respective restriction columns. The last element of the array, "0", is in the position reserved for the SERVICE_TYPE_ID restriction column. The value "0" is determined by looking up the allowed list of values for this restrictions column in the OLE DB for Data Mining specification.
Use this array in the ADO OpenSchema method as the Criteria parameter.
To use a schema rowset that is not supported by the ADO SchemaEnum enumeration in the ADO OpenSchema method, use the enumeration value adSchemaProviderSpecific with any restriction columns that are appropriate to the schema rowset. The SchemaID parameter of the OpenSchema method will contain the schema's GUID in a string format. For more information, see Schema Rowsets.