Transaction processing in DB2 ODBC

Transaction processing is the second core task after initialization. During this task, SQL statements query and modify data in DB2® ODBC.

The following figure shows the typical order of function calls in a DB2 ODBC application. It does not show all functions or possible paths.

Figure 1. Transaction processing
Begin figure summary. This figure is a flowchart that depicts common sequences of functions that you call in the transaction processing task of your application. Detailed description available.
The transaction processing task contains five general steps:
  1. Allocating statement handles
  2. Preparing and executing SQL statements
  3. Processing results
  4. Committing or rolling back
  5. Optionally, freeing statement handles if the statement is unlikely to be executed again