Microsoft ODBC Driver for SQL Server

Download-DownArrow-CircledTo download ODBC driver

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++

We have a small .zip file that contains the source code of a C++ program which uses ODBC:

Download

Documentation

Linux and macOS

Windows

Features

Community