Macros for OLE DB Provider Templates

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Macros for OLE DB Provider Templates.

The OLE DB Templates Provider macros offer functionality in the following categories:

Property Set Map Macros

BEGIN_PROPERTY_SETMarks the beginning of a property set.
BEGIN_PROPERTY_SET_EXMarks the beginning of a property set.
BEGIN_PROPSET_MAPMarks the beginning of a property set that can be hidden or defined outside the scope of the provider.
CHAIN_PROPERTY_SETChains property groups together.
END_PROPERTY_SETMarks the end of a property set.
END_PROPSET_MAPMarks the end of a property set map.
PROPERTY_INFO_ENTRYSets a specific property in a property set to a default value.
PROPERTY_INFO_ENTRY_EXSets a specific property in a property set to a value supplied by you. Also enables you to set flags and options.
PROPERTY_INFO_ENTRY_VALUESets a specific property in a property set to a value supplied by you.

Column Map Macros

BEGIN_PROVIDER_COLUMN_MAPMarks the beginning of the provider column map entries.
END_PROVIDER_COLUMN_MAPMarks the end of the provider column map entries.
PROVIDER_COLUMN_ENTRYRepresents a specific column supported by the provider.
PROVIDER_COLUMN_ENTRY_GNRepresents a specific column supported by the provider. You can specify the column's size, data type, precision, scale, and schema rowset GUID.
PROVIDER_COLUMN_ENTRY_FIXEDRepresents a specific column supported by the provider. You can specify the column data type.
PROVIDER_COLUMN_ENTRY_LENGTHRepresents a specific column supported by the provider. You can specify the column size.
PROVIDER_COLUMN_ENTRY_STRRepresents a specific column supported by the provider. It assumes the column type is a string.
PROVIDER_COLUMN_ENTRY_TYPE_LENGTHRepresents a specific column supported by the provider. Like PROVIDER_COLUMN_ENTRY_LENGTH, but also allows you to specify the column's data type as well as size.
PROVIDER_COLUMN_ENTRY_WSTRRepresents a specific column supported by the provider. It assumes the column type is a Unicode character string.

Schema Rowset Macros

BEGIN_SCHEMA_MAPMarks the beginning of a schema map.
SCHEMA_ENTRYAssociates a GUID with a class.
END_SCHEMA_MAPMarks the end of a schema map.

OLE DB Provider Templates
OLE DB Provider Template Architecture
Creating an OLE DB Provider
OLE DB Provider Templates Reference

Show: