Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.65 KB

File metadata and controls

31 lines (25 loc) · 1.65 KB
title Implementing SQLGetDiagRec and SQLGetDiagField
description Implementing SQLGetDiagRec and SQLGetDiagField
author dlevy-msft-sql
ms.author dlevy
ms.reviewer davidengel, sunilbs, mcimfl
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic concept-article
helpviewer_keywords
diagnostic information [ODBC], SqlGetDiagField
SQLGetDiagField function [ODBC], and SQLGetDiagRec
SQLGetDiagRec function [ODBC], and SQLGetDiagField
diagnostic information [ODBC], SqlGetDiagRec
retrieving diagnostic information [ODBC]

Implementing SQLGetDiagRec and SQLGetDiagField

SQLGetDiagRec and SQLGetDiagField are implemented by the Driver Manager and each driver. The Driver Manager and each driver maintain diagnostic records for each environment, connection, statement, and descriptor handle, and free those records only when another function is called with that handle or the handle is freed.

Although both the Driver Manager and each driver must determine the first status record according to the rankings in Sequence of Status Records, the Driver Manager determines the final sequence of records.

SQLGetDiagRec and SQLGetDiagField do not post diagnostic records about themselves.

This section contains the following topics.