Accessing Data with ODBC

   

ODBC provides a uniform API to access all relational data sources. Because ODBC has broad support from application and database vendors, the result is a single API that provides all the functionality that application developers need. This uniform data access architecture ensures interoperability and a common approach to data access for the many differing relational data sources.

An application uses the following function calls and processes to access a data source using the ODBC API.

By coding to the ODBC API, you can create database-independent code that automatically adapts to a variety of databases. However, there is one important consideration in adopting this approach. While any specific ODBC driver can leverage unique data source functions, the same functions might not be supported by other drivers. If your application is designed to be used across a variety of databases, these extended functions should be used carefully or not at all.