Error Handling

When a specific method invocation against an OLE DB provider returns an error code, SQL Server looks for the provider’s extended error information before returning information about the error condition to the user.

SQL Server uses the OLE DB error object as specified by OLE DB. Some of the high-level steps are:

For more information about how the provider’s error object is used, see your OLE DB documentation.