Initialization and termination of an ODBC program

Initialization and termination processes allocate and free resources by using handles.

The following figure shows the function call sequences for both the initialization and termination tasks.

Figure 1. Conceptual view of initialization and termination tasks
Begin figure summary. This figure depicts a flowchart that presents the ODBC initialization and termination tasks in detail. Detailed description available.

In the initialization task, an application allocates handles and connects to data sources. In the termination task, an application frees handles and disconnects from data sources. Use handles and the ODBC connection model to initialize and terminate an application.