Using the OLE DB Command Object

OLE DB Programmer's Reference

When you have an MDX statement that represents the desired dataset, the next step is to submit the query for execution. OLE DB for OLAP uses the existing infrastructure in OLE DB for query execution. This infrastructure takes the form of the command object. The command object exposes an interface called ICommandText, which has the following methods that, when used with the ICommand methods, provide the ability to execute queries:

  • ICommandText::GetCommandText gets the query string associated with the command object.
  • ICommandText::SetCommandText associates the query string with the command object.

Execution of an MDX statement usually results in the creation of a dataset, unless the application chooses to ask for a rowset object to be created (which represents a flattened dataset). For more information, see "Flattening a Dataset to Produce a Rowset."

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net