Executing a client function with SQLExecDirect()

You can execute a client function with the SQLExecDirect() function.

About this task

To execute a client function with SQLExecDirect():

Procedure

  1. Bind the parameters.
  2. Execute the SQL statement.

Results

The following code example illustrates these steps for ifx_lo_open():
rc = SQLBindParameter(...); 
rc = SQLExecDirect(hstmt, "{? = call ifx_lo_open(?, ?, ?)}", SQL_NTS);