Data Source (ODBC)
| Overview | How Do I | FAQ | Sample | | ODBC Driver List
This article applies to the MFC ODBC classes. For information about the MFC DAO classes, see the article Data Access Objects (DAO).
In database terms, a data source is a specific set of data, the information required to access that data, and the location of the data source, which can be described using a data-source name. To work with class , the data source must be one that you have configured through Open Database Connectivity (ODBC) Administrator. Examples of data sources include a remote database running on Microsoft SQL Server across a network, or a Microsoft Access file in a local directory. From your application, you can access any data source for which you have an ODBC driver.
You can have one or more data sources active in your application at one time, each represented by a CDatabase object. You can also have multiple simultaneous connections to any data source. You can connect to remote as well as to local data sources, depending on the drivers you have installed and the capabilities of your ODBC drivers. For more information about data sources and ODBC Administrator, see the articles ODBC and ODBC Administrator.
The following articles explain more about data sources: