Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.81 KB

File metadata and controls

27 lines (22 loc) · 1.81 KB
title Native Error Numbers
description For errors, the SQL Server Native Client ODBC driver returns the native error number from SQL Server or, for errors detected by the driver, 0.
author markingmyname
ms.author maghan
ms.date 03/14/2017
ms.service sql
ms.subservice native-client
ms.topic reference
helpviewer_keywords
ODBC error handling, native error numbers
SQL Server Native Client ODBC driver, errors
native error numbers [SQL Server Native Client]
messages [ODBC], native error numbers
errors [ODBC], native error numbers

Native Error Numbers

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

For errors that occur in the data source (returned by [!INCLUDEssNoVersion]), the [!INCLUDEssNoVersion] Native Client ODBC driver returns the native error number returned to it by [!INCLUDEssNoVersion]. For errors detected by the driver, the [!INCLUDEssNoVersion] Native Client ODBC driver returns a native error number of 0. For more information about a list of native error numbers, see the error column of the sysmessages system table in the master database in [!INCLUDEssNoVersion].

For information about the state error codes, see SQLSTATE (ODBC Error Codes). For errors returned by the Net-Library, the native error number is from the underlying network software.

See Also

Handling Errors and Messages