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.
The transaction processing task contains five general steps:
- Allocating statement handles
- Preparing and executing SQL statements
- Processing results
- Committing or rolling back
- Optionally, freeing statement handles if the statement is unlikely to be executed again