Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.61 KB

File metadata and controls

30 lines (24 loc) · 1.61 KB
title Implementing SQLGetDiagRec and SQLGetDiagField
description Implementing SQLGetDiagRec and SQLGetDiagField
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic conceptual
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.