Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 2.78 KB

File metadata and controls

39 lines (30 loc) · 2.78 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Error Messages
Error Messages
markingmyname
maghan
03/14/2017
sql
native-client
reference
SQL Server Native Client ODBC driver, errors
messages [ODBC], types
ODBC error handling, message types
errors [ODBC], types

Error Messages

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

The text of messages returned by the [!INCLUDEssNoVersion] Native Client ODBC driver is placed in the MessageText parameter of SQLGetDiagRec. The source of an error is indicated by the header of the message:

[Microsoft][ODBC Driver Manager]
These errors are raised by the ODBC Driver Manager.

[Microsoft][ODBC Cursor Library]
These errors are raised by the ODBC cursor library.

[Microsoft][SQL Server Native Client]
These errors are raised by the [!INCLUDEssNoVersion] Native Client ODBC driver. If there are no other nodes with either the name of a Net-Library or [!INCLUDEssNoVersion], then the error was encountered in the driver.

[Microsoft][SQL Server Native Client][Net-Transportname]
These errors are raised by the [!INCLUDEssNoVersion] Net-Library, where Net-Transportname is the display name of a [!INCLUDEssNoVersion] client network transport (for example, Named Pipes, Shared Memory, TCP/IP Sockets, or VIA). The remainder of the error message contains the Net-Library function called and the function called in the underlying network API by the TDS function. The pfNative error code returned with these errors is the error code from the underlying network protocol stack.

[Microsoft][SQL Server Native Client][ [!INCLUDEssNoVersion]]
These errors are raised by [!INCLUDEssNoVersion]. The remainder of the error message is the text of the error message from [!INCLUDEssNoVersion]. The pfNative code returned with these errors is the error number from [!INCLUDEssNoVersion]. For more information about a list of error messages (and their numbers) that can be returned by [!INCLUDEssNoVersion], see the description and error columns of the sysmessages system table in the master database in [!INCLUDEssNoVersion].

See Also

Handling Errors and Messages