Allocating and binding a row or collection buffer

When you retrieve a row or collection, the database server puts the row or collection into a buffer that is local to your HCL OneDB™ ODBC Driver application.

About this task

To allocate and bind a row or collection buffer:


  1. Call ifx_rc_create() to allocate the buffer.
  2. Call SQLBindCol() to bind the buffer handle to the database column.
  3. Execute a SELECT statement to transfer the row or collection data to the local buffer.
  4. Use the row or collection buffer.
  5. Call ifx_rc_free() to deallocate the buffer.