Session Object

OLE DB Programmer's Reference

Exactly as in OLE DB, an OLE DB for OLAP consumer creates a session object by using a data source object (by calling IDBCreateSession::CreateSession). A session establishes the current catalog or schema of the consumer. Within this context are zero or more cubes.

For providers categorized as TDP or TDP/MDP, the cotype definition of the OLE DB for OLAP session object is as follows:

CoType TSession { [mandatory]   interface IGetDataSource; [mandatory]   interface IOpenRowset; [mandatory]   interface ISessionProperties; [optional]    interface IDBCreateCommand; [optional]    interface IDBSchemaRowset; [optional]    interface IIndexDefinition; [optional]    interface ISupportErrorInfo; [optional]    interface ITableDefinition; }

For providers categorized exclusively as MDP, the cotype definition of the OLE DB for OLAP session object is as follows:

CoType TSession { [mandatory]   interface IGetDataSource; [mandatory]   interface ISessionProperties; [mandatory]   interface IDBCreateCommand; [optional]    interface IOpenRowset; [optional]    interface IDBSchemaRowset; [optional]    interface IIndexDefinition; [optional]    interface ISupportErrorInfo; [optional]    interface ITableDefinition; }

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