Automatic Population of the IPD
An application determines whether the driver supports automatic population by
calling SQLGetConnectAttr with an Attribute of SQL_ATTR_AUTO_IPD. If SQL_TRUE is returned, the driver supports it, and
the application can enable it by setting the SQL_ATTR_ENABLE_AUTO_IPD statement
attribute to SQL_TRUE.
When automatic population is supported and enabled, the driver populates the
fields of the IPD after an SQL statement containing parameter markers has been
prepared by a call to SQLPrepare. An application can retrieve this information by calling SQLGetDescField or SQLGetDescRec, or SQLDescribeParam. The application can use the information to bind the most appropriate
application buffer for a parameter, or to specify a data conversion for it.
Automatic population of the IPD may produce a performance penalty. An
application can turn it off by resetting the SQL_ATTR_ENABLE_AUTO_IPD statement
attribute to SQL_FALSE (which is the default value).