ADO Error Object
--- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
ADO Tutorial
ADO Tutorial ADO Introduction ADO Database Connection ADO Recordset ADO Display ADO Query ADO Sort ADO Add Records ADO Update Records ADO Delete Records ADO Speed Up Script with GetString() ADO Command Object ADO Connection Object ADO Error Object ADO Field Object ADO Parameter Object ADO Property Object ADO Record Object ADO Recordset Object ADO Stream Object ADO Data Types ADO Summary ADO Examples ADO Connection Object ADO Field ObjectADO Error Object
Error Object
The ADO Error object contains detailed information about data access errors related to a single operation involving the provider.
ADO generates an Error object for each error. Each Error object contains detailed information about a specific error and is stored in the Errors collection. To access these errors, you must reference a specific connection.
Loop through the Errors collection:
<% for each objErr in objConn.Errors response.write("")
response.write("Description: ")
response.write(objErr.Description & "
")
response.write("Help context: ")
response.write(objErr.HelpContext & "
")
response.write("Help file: ")
response.write(objErr.HelpFile & "
")
response.write("Native error: ")
response.write(objErr.NativeError & "
")
response.write("Error number: ")
response.write(objErr.Number & "
")
response.write("Error source: ")
response.write(objErr.Source & "
")
response.write("SQL state: ")
response.write(objErr.SQLState & "
")
response.write("
Syntax
objErr.property
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 five-character SQL error code. |
ByteArk Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., directly supplied by the official, stable and reliable. Β₯9.9/month Sign up now
Xunfei Xingchen Coding Plan includes free model invocation quota, DeepSeek, GLM, Kimi
YouTip