Basic ODBC Application Steps
Step 1: Connect to the Data Source
The first step in any application is to connect to the data source. This phase, including the functions it requires, is shown in the following illustration.
The first step in connecting to the data source is to load the Driver Manager and allocate the environment handle with SQLAllocHandle. For more [...]