Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.56 KB

diagnostics.md

File metadata and controls

30 lines (23 loc) · 1.56 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Diagnostics
Diagnostics
David-Engel
davidengel
01/19/2017
sql
connectivity
conceptual
diagnostic information [ODBC]
functions [ODBC], diagnostic information
diagnostic information [ODBC], about diagnostic information

Diagnostics

Functions in ODBC return diagnostic information in two ways. The return code indicates the overall success or failure of the function, while diagnostic records provide detailed information about the function. At least one diagnostic record - the header record - is returned even if the function succeeds.

Diagnostic information is used at development time to catch programming errors such as invalid handles and syntax errors in hard-coded SQL statements. It is used at run time to catch run-time errors and warnings such as data truncation, access violations, and syntax errors in SQL statements entered by the user.

This section contains the following topics.