Share via


Command Object (OLE DB)

The command object supports text commands in the MDX syntax by using the OLE DB ICommandText interface. Consumers use ICommandText::SetCommandText to specify the command and ICommand::Execute to process the command. For commands that may be used several times, consumers can prepare the command with ICommandPrepare::Prepare. For a complete discussion of the OLE DB command object, see Command Objects. For additional information about the MDX syntax defined by OLE DB for OLAP and its use, see Datasets and Multidimensional Expressions. Also see Multidimensional Expressions.

OLE DB for OLAP defines a GUID that denotes the MDX syntax: MDGUID_MDX. This GUID is used in ICommandText::SetCommandText to notify the provider that the query language being used is the MDX syntax defined in MDX Grammar.