Error Object
PROPERTY: Error::NativeError
long =
errorobject.
NativeError
The
NativeError
property is a long value that is an error code that is returned to ADO by the data source or the provider when an error occurs. ADO uses the
NativeError
property to allow access to this underlying error code.
You will have to refer to the data source/provider documentation for an explanation of the returned error code.
Code (VBScript):
For Each objError in objConnection
ErrorInfo = "Description; " & objError.Description & VBCRLF &_
"Help Context: " & objError.HelpContext & VBCRLF &_
"Help File: " & objError.HelpFile & VBCRLF &_
"Native Error: " & objError.
NativeError
& VBCRLF &_
"Number: " & objError.Number & VBCRLF &_
"Source: " & objError.Source & VBCRLF &_
"SQL State: " & objError.SQLState & VBCRLF
Response.Write ErrorInfo
Next
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information