Executing a client function with SQLExecDirect()

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

To execute a client function with SQLExecDirect():

  1. Bind the parameters.
  2. Execute the SQL statement.
The following code example illustrates these steps for ifx_lo_open():
rc = SQLBindParameter(...); 
rc = SQLExecDirect(hstmt, "{? = call ifx_lo_open(?, ?, ?)}", SQL_NTS); 

Copyright© 2020 HCL Technologies Limited