Enumerations

The Microsoft® SQL Server™ OLAP Services Decision Support Objects (DSO) object model provides a number of enumerations. For example, the following code uses the ClassTypes enumeration to retrieve the class type of an object and determine whether the object is a cube, a virtual cube, or some other object:

' Assume that the object dsoServer of ClassType clsServer exists

Dim dsoDB as MDStore

Dim dsoCube as MDStore

Dim CubeCounter as Integer

Set dsoDB = dsoServer.MDStores(1)

For CubeCounter = 1 To dsoDB.MDStores.Count

  Set dsoCube = dsoDB.MDStores(CubeCounter)

  Debug.Print "  Cube: " & dsoCube.Name

  If dsoCube.SubClassType = sbclsRegular Then

    Debug.Print "       SubClassType: Regular"

    Debug.Print "        SourceTable: " & dsoCube.SourceTable

  Else

    Debug.Print "       SubClassType: Virtual"

  End If

Next CubeCounter

Enumerator Description
AggregatesTypes Enumerates values for the AggregateFunction property.
ClassTypes Enumerates values for the ClassType property.
CloneOptions Enumerates options for the Clone method.
CommandTypes Enumerates values for the CommandType property.
DimensionAggUsageTypes Enumerates values for the AggregationUsage property.
DimensionTypes Enumerates values for the DimensionType property.
ErrorCodes Enumerates error codes.
LevelTypes Enumerates values for the LevelType property.
OlapEditions Enumerates values for the Edition property.
OLAPLockTypes Enumerates values for the LockType parameter of the LockObject method.
OlapStateTypes Enumerates values for the State property.
OlapStorageModes Enumerates values for the OlapMode property.
OrderTypes Enumerates values for the Ordering property.
ProcessTypes Enumerates values for the Option parameter of the Process method.
ServerStates Enumerates values for the State property.
SubClassTypes Enumerates values for the SubClassType property.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.