--- title: "Native Error Numbers | Microsoft Docs" ms.custom: "" ms.date: "03/06/2017" ms.prod: "sql-server-2014" 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: MightyPen ms.author: genemi manager: craigg --- # Native Error Numbers For errors that occur in the data source (returned by [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]), the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Native Client ODBC driver returns the native error number returned to it by [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. For errors detected by the driver, the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] 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 [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. For information about the state error codes, see [SQLSTATE (ODBC Error Codes)](sqlstate-odbc-error-codes.md). For errors returned by the Net-Library, the native error number is from the underlying network software. ## See Also [Handling Errors and Messages](handling-errors-and-messages.md)