| 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 |
|
[!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.