C++ Objects

The following lists are the SQL-DMO objects available for C++ programs. Each SQL-DMO object has a "pointer to an object" type (used for C++ variable declarations) and an interface ID, and some objects have a class ID. SQL-DMO objects that have a class ID can be created using CoCreateInstance. Objects that do not have a class ID cannot be created, and can only be returned from other SQL-DMO objects.

These values are listed in the following format:

Object
Pointer to object type

Pointer to collection object type ( - if none)

Pointer to list object type ( - if none)

Class ID ( - if none)

Interface ID

The Object is bold if it can be created using CoCreateInstance.

For most SQL-DMO objects, where Object is the name of the SQL-DMO object, the Object name is used as a suffix to the variable type, class ID and interface ID as shown in the following format:

Object
LPSQLOLEOBJECT

LPSQLOLEOBJECTS

LPSQLOLEOBJECTLIST

CLSID_SQLOLEObject

IID_ISQLOLEObject

The SQLServer object is an exception. It only uses the Server suffix for the variable type, class ID, and interface ID, but still uses the complete name SQLServer for the object name.

Note that the Property object and Properties collection are not available to C++ programs.