Understanding ODBC Architecture

   

The ODBC architecture consists of four components, as described in the following list.

Your application uses the ODBC API to connect to a data source, submit SQL statements, fetch data, and disconnect. A driver manager sits between the application and the ODBC drivers, decides which driver to load, and manages communications as driver functions are called. Finally, the drivers implement the functions of the ODBC API for the particular database. The following drawing shows how these functions interact.

What the ODBC architecture means to your application is that you can access different ODBC data sources, in different locations, using the same function calls available in the ODBC API. Once you have working code to access one relational data source, the code is easily extended to access other data sources.