SET_PARAM_TYPE

SET_PARAM_TYPE( type )

Parameters

type

[in] The type to set for the parameter.

Remarks

Specifies COLUMN_ENTRY macros that follow the SET_PARAM_TYPE macro input, output, or input/output. Providers support only parameter I/O types that are supported by the underlying data source. The type is a combination of one or more DBPARAMIOENUM values:

  • DBPARAMIO_NOTPARAM   The accessor is not used for parameters. In most cases eParamIO is set to this value in row accessors to remind the programmer that it is ignored.

  • DBPARAMIO_INPUT   An input parameter.

  • DBPARAMIO_OUTPUT   An output parameter.

  • DBPARAMIO_NOTPARAM   The accessor has no parameters. Setting eParamIO to this value in row accessors reminds the user that parameters are ignored.

Macros for OLE DB Consumer Templates

Example

class CGetProperty
{
public:
   LONG    m_nReturn
   LONG   m_nAge;
   TCHAR m_name[31];
   TCHAR m_property[65];

BEGIN_PARAM_MAP(CGetProperty)
   SET_PARAM_TYPE(DBPARAMIO_OUTPUT)
   COLUMN_ENTRY(1, m_nReturn)
   SET_PARAM_TYPE(DBPARAMIO_INPUT)
   COLUMN_ENTRY(2, m_nAge)
END_PARAM_MAP()

BEGIN_COLUMN_MAP(CGetProperty)
   COLUMN_ENTRY(1, m_name)
   COLUMN_ENTRY(2, m_property)
END_COLUMN_MAP()

};