SE_stream_num_result_columns

Returns the number of columns for the current operation of the specified stream

Usage syntax

LONG SE_stream_num_result_columns
(SE_STREAM stream,
SHORT *num_columns);

Parameters
stream The stream handle
num_columns The number of columns for the current operation
Description

SE_stream_num_result_columns returns the number of columns that are involved in the current stream operation (e.g., the number of columns returned by a query).

Returns

SE_SUCCESS
SE_CONNECTION_IN_USE

SE_CONNECTION_LOCKED

SE_FUNCTION_SEQUENCE_ERROR

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_NOT_A_SELECT_STATEMENT

SE_SDE_NOT_STARTED

Notes

∙  This function is especially useful when an arbitrary SQL query initiated the stream from SE_stream_prepare_sql.

∙  An application may call SE_stream_num_result_columns only after a stream has been initialized and before it is closed.