Skip to content

Latest commit

 

History

History
76 lines (57 loc) · 4.76 KB

File metadata and controls

76 lines (57 loc) · 4.76 KB
title Microsoft ODBC Driver for SQL Server | Microsoft Docs
ms.custom
ms.date 02/05/2019
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
ms.assetid 9f2ae91b-06af-4c9a-9d24-062df7bc4662
author David-Engel
ms.author v-daenge

Microsoft ODBC Driver for SQL Server

[!INCLUDEODBC_Current_Version]

[!INCLUDEDriver_ODBC_Download]

ODBC is the primary native data access API for applications written in C and C++ for SQL Server. There is an ODBC driver for most data sources. Other languages that can use ODBC include COBOL, Perl, PHP, and Python. ODBC is widely used in data integration scenarios.

The ODBC driver comes with tools such as sqlcmd and bcp. The sqlcmd utility lets you run Transact-SQL statements, system procedures, and SQL scripts. The bcp utility bulk copies data between an instance of Microsoft SQL Server and a data file in a format you choose. You can use bcp to import many new rows into SQL Server tables or to export data out of tables into data files.

Code example in C++

The following C++ sample demonstrates how to use the ODBC APIs to connect to and access a database:

Download

Documentation

Features

Linux and macOS

Windows

Community