Skip to content

Latest commit

 

History

History
53 lines (47 loc) · 2.32 KB

File metadata and controls

53 lines (47 loc) · 2.32 KB
title Data Source (ODBC) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
ODBC data sources, configuring
CDatabase class, data source connections
ODBC data sources
configuring ODBC data sources
ODBC data sources, represented by CDatabase
ms.assetid b246721f-b9e1-49bd-a6c7-f348b8c3d537
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Data Source (ODBC)

This topic applies to the MFC ODBC classes.

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 CDatabase, 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 ODBC and ODBC Administrator.

The following topics explain more about data sources:

See Also

Open Database Connectivity (ODBC)