ADO Error
Object
Error Object
The ADO Error object contains detailed information about data access errors related to a single operation involving a provider.
ADO generates an Error object for each error. Each Error object contains detailed information about a specific error, and the Error objects are stored in the Errors collection. To access these errors, you must reference a specific connection.
Loop through the Errors collection:
Syntax
Properties
Property | Description |
---|---|
Description | Returns a description of the error. |
HelpContext | Returns the content ID of a topic in the Microsoft Windows help system. |
HelpFile | Returns the full path of the help file in the Microsoft Windows help system. |
NativeError | Returns the error code from the provider or data source. |
Number | Returns a unique number that identifies the error. |
Source | Returns the name of the object or application that generated the error. |
SQLState | Returns a 5-character SQL error code. |