Macros and Global Functions for OLE DB Consumer 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 and Global Functions for OLE DB Consumer Templates.

The OLE DB Consumer Templates include the following macros and global functions:

Global Functions

AtlTraceErrorRecordsDumps OLE DB Error Record information to the dump device if an error is returned.

Accessor Map Macros

BEGIN_ACCESSORMarks the beginning of an accessor entry.
BEGIN_ACCESSOR_MAPMarks the beginning of the accessor map entries.
END_ACCESSORMarks the end of an accessor entry.
END_ACCESSOR_MAPMarks the end of the accessor map entries.

Column Map Macros

BEGIN_COLUMN_MAPMarks the beginning of the column map entries in the user record class.
BLOB_ENTRYUsed to bind a binary large object (BLOB).
BLOB_ENTRY_LENGTHReports the length of the BLOB data column.
BLOB_ENTRY_LENGTH_STATUSReports the length and status of the BLOB data column.
BLOB_ENTRY_STATUSReports the status of the BLOB data column.
BLOB_NAMEUsed to bind a binary large object by column name.
BLOB_NAME_LENGTHReports the length of the BLOB data column.
BLOB_NAME_LENGTH_STATUSReports the length and status of the BLOB data column.
BLOB_NAME_STATUSReports the status of the BLOB data column.
BOOKMARK_ENTRYRepresents a bookmark entry on the rowset. A bookmark entry is a special kind of column entry.
COLUMN_ENTRYRepresents a binding to a specific column in the database.
COLUMN_ENTRY_EXRepresents a binding to the specific column in the database. Supports type, length, precision, scale, and status parameters.
COLUMN_ENTRY_LENGTHRepresents a binding to the specific column in the database. Supports the length variable.
COLUMN_ENTRY_LENGTH_STATUSRepresents a binding to the specific column in the database. Supports status and length parameters.
COLUMN_ENTRY_PSRepresents a binding to the specific column in the database. Supports precision and scale parameters.
COLUMN_ENTRY_PS_LENGTHRepresents a binding to the specific column in the database. Supports the length variable, precision and scale parameters.
COLUMN_ENTRY_PS_LENGTH_STATUSRepresents a binding to the specific column in the database. Supports status and length variables, precision and scale parameters.
COLUMN_ENTRY_PS_STATUSRepresents a binding to the specific column in the database. Supports the status variable, precision and scale parameters.
COLUMN_ENTRY_STATUSRepresents a binding to the specific column in the database. Supports the status variable.
COLUMN_ENTRY_TYPERepresents a binding to a specific column in the database. Supports type parameter.
COLUMN_ENTRY_TYPE_SIZERepresents a binding to the specific column in the database. Supports type and size parameters.
COLUMN_NAMERepresents a binding to a specific column in the database by name.
COLUMN_NAME_EXRepresents a binding to a specific column in the database by name. Supports specification of data type, size, precision, scale, column length, and column status.
COLUMN_NAME_LENGTHRepresents a binding to a specific column in the database by name. Supports specification of column length.
COLUMN_NAME_LENGTH_STATUSRepresents a binding to a specific column in the database by name. Supports specification of column length and status.
COLUMN_NAME_PSRepresents a binding to a specific column in the database by name. Supports specification of precision and scale.
COLUMN_NAME_PS_LENGTHRepresents a binding to a specific column in the database by name. Supports specification of precision, scale, and column length.
COLUMN_NAME_PS_LENGTH_STATUSRepresents a binding to a specific column in the database by name. Supports specification of precision, scale, column length, and column status.
COLUMN_NAME_PS_STATUSRepresents a binding to a specific column in the database by name. Supports specification of precision, scale, and column status.
COLUMN_NAME_STATUSRepresents a binding to a specific column in the database by name. Supports specification of column status.
COLUMN_NAME_TYPERepresents a binding to a specific column in the database by name. Supports specification of data type.
COLUMN_NAME_TYPE_PSRepresents a binding to a specific column in the database by name. Supports specification of data type, precision, and scale.
COLUMN_NAME_TYPE_SIZERepresents a binding to a specific column in the database by name. Supports specification of data type and size.
COLUMN_NAME_TYPE_STATUSRepresents a binding to a specific column in the database by name. Supports specification of data type and column status.
END_COLUMN_MAPMarks the end of the column map entries.

Command Macros

DEFINE_COMMANDSpecifies the command that will be used to create the rowset when using the CCommand class. Accepts only string types matching the specified application type (ANSI or Unicode). It is recommended that you use DEFINE_COMMAND_EX instead of DEFINE_COMMAND.
DEFINE_COMMAND_EXSpecifies the command that will be used to create the rowset when using the CCommand class. Supports ANSI and Unicode applications.

Parameter Map Macros

BEGIN_PARAM_MAPMarks the beginning of the parameter map entries in the user record class.
END_PARAM_MAPMarks the end of the parameter map entries.
SET_PARAM_TYPESpecifies COLUMN_ENTRY macros that follow the SET_PARAM_TYPE macro as input, output, or input/output.

OLE DB Consumer Templates
OLE DB Consumer Templates
OLE DB Consumer Templates Reference

Show: