cniSqlExecute

Executes an SQL statement previously created using the cniSqlCreateStatement utility function, as defined by the sqlExpression parameter. This function is used when the statement does not return data, for example, when a PASSTHRU function is used.

Syntax

void cniSqlExecute(
  int*               returnCode,
  CciSqlExpression*  sqlExpression,
  CciMessage*        destinationList,
  CciMessage*        exceptionList,
  CciMessage*        message);

Parameters

returnCode
The return code from the function (output).
sqlExpression
The SQL expression object to be executed, as returned by the cniSqlCreateStatement utility function (input).
destinationList
The message representing the input destination list (input).
exceptionList
The message representing the input exception list (input).
message
The message representing the input message (input).

Return values

None. If an error occurs, the returnCode parameter indicates the reason for the error.

Related concepts
User-defined message processing nodes
User-defined output nodes

Related tasks
Creating a message processing node in C

Related reference
C language node utility functions
cniSqlCreateStatement
cniSqlDeleteStatement
cniSqlSelect