Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » UltraLite - C and C++ Programming » API Reference » UltraLite ODBC API reference

 

SQLBindCol function

Binds a result set column to an application data buffer, for UltraLite ODBC.

Syntax
UL_FN_SPEC SQLRETURN UL_FN_MOD SQLBindCol (
SQLHSTMT StatementHandle,
SQLUSMALLINT ColumnNumber,
SQLSMALLINT TargetType,
SQLPOINTER TargetValue,
SQLLEN BufferLength,
SQLLEN * StrLen_or_Ind );
Parameters
  • StatementHandle   A handle for the statement that is to return a result set.

  • ColumnNumber   The number of the column in the result set to bind to an application data buffer.

  • TargetType   The identifier of the data type of the TargetValue pointer.

  • TargetValue   A pointer to the data buffer to bind to the column.

  • BufferLength   The length of the TargetValue buffer in bytes.

  • StrLen_or_lnd   A pointer to the length or indicator buffer to bind to the column. For strings, the length buffer holds the length of the actual string that was returned, which may be less than the length allowed by the column.

Remarks

To exchange information between your application and the database, ODBC binds buffers in the application to database objects such as columns. SQLBindCol is used when executing a query to identify a buffer in your application as a place that UltraLite puts the value of a specified column.