Binds a result set column to an application data buffer, for UltraLite ODBC.
UL_FN_SPEC SQLRETURN UL_FN_MOD SQLBindCol ( SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValue, SQLLEN BufferLength, SQLLEN * StrLen_or_Ind );
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.
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.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |