IADOConnectionConstruction

IADOConnectionConstruction allows you to create an ADO connection from existing OLE DB objects. Using this interface is only feasible from C or C++ code that uses a mix of OLE DB and ADO. To do this, you typically create an empty ADO connection by using CoCreateInstance; query the object for the IADOConnectionConstuction interface; and then call WrapDSOandSession to initialize from an existing OLE DB data source object and session.

The guid for this interface, used to call QueryInterface, is IID_IADOConnectionConstruction.

In the header file, this interface is called ADOConnectionConstruction.

Method

Description

IADOConnectionConstruction::get_DSO

Returns the OLE DB data source object for the connection.

IADOConnectionConstruction::get_Session

Returns the OLE DB session for the connection (a session is the OLE DB equivalent of an ADO connection).

IADOConnectionConstruction::WrapDSOandSession

Creates a connection from an existing data source object and session.

This topic is a part of: