Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 2.64 KB

File metadata and controls

39 lines (28 loc) · 2.64 KB
title Communicating with SQL Server (ODBC)
description Learn how an ODBC application communicates with an instance of SQL Server by using connections and connection resources.
author markingmyname
ms.author maghan
ms.date 03/16/2017
ms.service sql
ms.subservice native-client
ms.topic reference
helpviewer_keywords
SQL Server Native Client ODBC driver, communicating with SQL Server
ODBC applications, communicating with SQL Server
ODBC, communicating with SQL Server

Communicating with SQL Server (ODBC)

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

For an ODBC application to communicate with an instance of [!INCLUDEmsCoName] [!INCLUDEssNoVersion], it must allocate environment and connection handles and connect to the data source. After a connection is established, the application can send queries to the server and process any result sets. When the application has finished using the data source, it disconnects from the data source and frees the connection handle. When the application has freed all its connection handles, it frees the environment handle.

An application can connect to any number of data sources. The application can use a combination of drivers and data sources, the same driver and a combination of data sources, or even the same driver and multiple connections to the same data source.

You can download [!INCLUDEssNoVersion] Native Client ODBC samples from the SQL Server Downloads.

In This Section

See Also

SQL Server Native Client (ODBC)
SQLSetEnvAttr