HRESULT GetDBSession( REFIID riid, IUnknown ** ppSession );
See ICommand::GetDBSession in the OLE DB Programmer's Reference.
Remarks
Returns an interface pointer to the session that created the command. Useful for retrieving properties from the session.