Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 3.09 KB

File metadata and controls

43 lines (34 loc) · 3.09 KB
title Error Messages | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql
ms.prod_service database-engine, sql-database, sql-data-warehouse, pdw
ms.reviewer
ms.technology native-client
ms.topic reference
helpviewer_keywords
SQL Server Native Client ODBC driver, errors
messages [ODBC], types
ODBC error handling, message types
errors [ODBC], types
ms.assetid 46c0c22e-d105-4d5b-bb9d-5694472e8651
author markingmyname
ms.author maghan
monikerRange >=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current

Error Messages

[!INCLUDEappliesto-ss-asdb-asdw-pdw-md]

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