Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 883 Bytes

sqlallocconnect-mapping.md

File metadata and controls

25 lines (21 loc) · 883 Bytes
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
SQLAllocConnect Mapping
SQLAllocConnect Mapping
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
SQLAllocConnect function [ODBC], mapping
mapping deprecated functions [ODBC], SQLAllocConnect

SQLAllocConnect Mapping

When an application calls SQLAllocConnect through an ODBC 3.x driver, the call to SQLAllocConnect(henv, phdbc) is mapped to SQLAllocHandle as follows:

  1. The Driver Manager allocates a connection and returns it to the application.

  2. When the application establishes a connection, the Driver Manager calls

    SQLAllocHandle(SQL_HANDLE_DBC, InputHandle, OutputHandlePtr)  
    

    in the driver with InputHandle set to henv, and OutputHandlePtr set to phdbc.