Skip to content

Latest commit

 

History

History
79 lines (65 loc) · 4.61 KB

File metadata and controls

79 lines (65 loc) · 4.61 KB
title Data Access in Visual C++ | Microsoft Docs
ms.custom
ms.date 03/28/2017
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
Visual C++, data access applications
databases [C++]
OLE DB [C++], data access technologies
data [C++], data access technologies
data access [C++], class libraries for databases
ms.assetid 95da6237-bbe2-480a-ae50-3a520051ceff
caps.latest.revision 14
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 Access in Visual C++

Virtually all database products, SQL and NoSQL, provide an interface for native C++ applications. The industry standard interface is ODBC which is supported by all major SQL database products and many NoSQL products. For non-Microsoft products, consult the vendor for more information. Third-party libraries with various license terms are also available.

Since 2011 Microsoft has aligned on ODBC as the standard for native applications to connecting to Microsoft SQL Server databases, both on-premises and in the cloud. For more information, see Data Access Programming (MFC-ATL). C++/CLI libraries can use either the native ODBC drivers or ADO.NET. For more information, see Data Access Using ADO.NET (C++/CLI) and Accessing data in Visual Studio.

In This Section

Data Access Programming (MFC/ATL) Describes legacy data access programming with Visual C++, where the preferred way is to use one of the class libraries such as the Active Template Class Library (ATL) or Microsoft Foundation Class (MFC) Library, which simplify working with the database APIs.

Open Database Connectivity (ODBC) The Microsoft Foundation Classes (MFC) library supplies classes for programming with Open Database Connectivity (ODBC).

OLE DB Programming A mostly legacy interface which is still required in some scenarios, specifically when you are programming against linked servers.

Related Topics

Connect to SQL Database using C and C++ Connect to Azure SQL Database from C or C++ applications.

Microsoft Azure Storage Client Library for C++ Azure Storage is a cloud storage solution for modern applications that rely on durability, availability, and scalability to meet the needs of their customers. Connect to Azure Storage from C++ by using the Azure Storage Client Library for C++.

ODBC Driver 13.1 for SQL Server - Windows Released The latest ODBC driver provides robust data access to Microsoft SQL Server 2016 Microsoft Azure SQL Database for C/C++ based applications. Provides support for features including always encrypted, Azure Active Directory, and AlwaysOn Availability Groups. Also available for MacOS and Linux.

SQL Server Native Client SQL Server Native Client is a stand-alone data access application programming interface (API), used for both OLE DB and ODBC, that supports SQL Server 2005 through SQL Server 2014. New applications should use the ODBC Driver 13.1 for SQL Server.

Microsoft Azure C and C++ Developer Center Azure makes it easy to build C++ applications with increased flexibility, scalability and reliability using tools you love.

How to use Blob Storage from C++ Azure Blob storage is a service that stores unstructured data in the cloud as objects/blobs. Blob storage can store any type of text or binary data, such as a document, media file, or application installer. Blob storage is also referred to as object storage.

ODBC Programmer's Reference The ODBC interface is designed for use with the C programming language. Use of the ODBC interface spans three areas: SQL statements, ODBC function calls, and C programming.

See Also

Visual C++