Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 990 Bytes

driver-manager-diagnostic-example.md

File metadata and controls

24 lines (22 loc) · 990 Bytes
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Driver Manager Diagnostic Example
Driver Manager Diagnostic Example
David-Engel
v-davidengel
01/19/2017
sql
connectivity
conceptual
driver manager [ODBC], diagnostic messages
diagnostic information [ODBC], examples
error messages [ODBC], diagnostic messages

Driver Manager Diagnostic Example

The Driver Manager can also generate diagnostic messages. For example, if an application passed an invalid direction option to SQLDataSources, the Driver Manager might format and return the following values from SQLGetDiagRec:

SQLSTATE:         "HY103"  
Native Error:      0  
Diagnostic Msg:   "[Microsoft][ODBC Driver Manager]Direction option out of range"  

Because the error occurred in the Driver Manager, it added prefixes to the diagnostic message for its vendor ([Microsoft]) and its identifier ([ODBC Driver Manager]).