DB2 Version 9.7 for Linux, UNIX, and Windows

DeferredPrepare CLI/ODBC configuration keyword

Minimizes network flow by combining the PREPARE request with the corresponding execute request.

db2cli.ini keyword syntax:
DeferredPrepare = 0 | 1
Default setting:
The prepare request will be delayed until the execute request is sent.
Equivalent statement attribute:
SQL_ATTR_DEFERRED_PREPARE
Usage notes:
 

Defers sending the PREPARE request until the corresponding execute request is issued. The two requests are then combined into one command/reply flow (instead of two) to minimize network flow and to improve performance.

Note: When deferred prepare is enabled, the row and cost estimates normally returned in the SQLERRD(3) and SQLERRD(4) of the SQLCA of a PREPARE statement may become zeros. This may be of concern to users who want to use these values to decide whether or not to continue the SQL statement.