Previous Topic: Construct the ODBC/JDBC StatementsNext Topic: Retrieve Data


Execute SQL Statement

You can now type code that are for executing SQL statements.

Follow these steps:

  1. Execute the SQL statement and retrieve the result set, if any. Use the Code section of the inline code statement for this purpose.
  2. Verify the return code from every TIR or SQL ODBC API yielded. Use try/catch blocks to catch SQL exceptions for both C#/ADO.NET and JAVA/JDBC for further error handling.

    The following predicates may be helpful in catching SQL errors:

  3. Propagate the error information to callers using action block runtime global data so that the application sees the failures.