Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.98 KB

File metadata and controls

31 lines (26 loc) · 1.98 KB
title Native Error Numbers | 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
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
ms.assetid 77cbc826-f47f-4803-8e7a-223d6df069b1
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

Native Error Numbers

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

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