--- title: "Diagnostic Handling Examples | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual helpviewer_keywords: - "diagnostic information [ODBC], examples" - "error messages [ODBC], diagnostic messages" - "diagnostic messages [ODBC]" ms.assetid: 57f88c22-e7fa-4270-a0bf-443a2684cf6e author: David-Engel ms.author: v-daenge --- # Diagnostic Handling Examples The following examples show how various components in an ODBC connection might generate diagnostic messages and how various drivers might return diagnostics to the application with **SQLGetDiagRec**. - [File-Based Driver Diagnostic Example](../../../odbc/reference/develop-app/file-based-driver-diagnostic-example.md) - [DBMS-Based Driver Diagnostic Example](../../../odbc/reference/develop-app/dbms-based-driver-diagnostic-example.md) - [Gateways Diagnostic Example](../../../odbc/reference/develop-app/gateways-diagnostic-example.md) - [Driver Manager Diagnostic Example](../../../odbc/reference/develop-app/driver-manager-diagnostic-example.md)