Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 945 Bytes

sqlerror-mapping.md

File metadata and controls

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

SQLError Mapping

When an application calls SQLError through an ODBC 3.x driver, the call to

SQLError(henv, hdbc, hstmt, szSqlState, pfNativeError, szErrorMsg, cbErrorMsgMax, pcbErrorMsg)   

is mapped to

SQLGetDiagRec(HandleType, Handle, RecNumber, szSqlstate, pfNativeErrorPtr, szErrorMsg, cbErrorMsgMax, pcbErrorMsg)  

with the HandleType argument set to the value SQL_HANDLE_ENV, SQL_HANDLE_DBC, or SQL_HANDLE_STMT, as appropriate, and the Handle argument set to the value in henv, hdbc, or hstmt, as appropriate. The RecNumber argument is determined by the Driver Manager.