다음을 통해 공유


Session Object

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;
}