ADO Description Property
Definition and Usage
The Description property returns a string that contains a description of the error.
These are the default properties of the Error object. Both providers and ADO can be sources of errors.
The provider is responsible for passing specific error text to ADO. For each provider error or warning received, ADO adds an Error object to the Errors collection. Enumerating the Errors collection tracks the errors passed by the provider.
Syntax
strErrorText = objErr.Description
Example
<% for each objErr in objConn.Errors response.write("<p>") response.write("Description:") response.write(objErr.Description & "<br />") response.write("Help context:") response.write(objErr.HelpContext & "<br />") response.write("Help file:") response.write(objErr.HelpFile & "<br />") response.write("Native error: ") response.write(objErr.NativeError & "<br />") response.write("Error number: ") response.write(objErr.Number & "<br />") response.write("Error source: ") response.write(objErr.Source & "<br />") response.write("SQL state: ") response.write(objErr.SQLState & "<br />") response.write("</p>") next %>