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.
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.