Native Error Numbers

For errors that occur in the data source (returned by SQL Server), the SQL Server driver returns the native error number that is returned to it by SQL Server. For errors that are detected by the driver, the SQL Server driver returns a native error number of 0. For a list of native error numbers, see the error column of the sysmessages system table in the master database in SQL Server.

For errors returned by the Net-Library, the native error number is from the underlying network software.