Most of the ADO error codes correspond to the meaning

Source: Internet
Author: User
Tags error code exception handling
In addition to the provider errors that are described in the Error object and the Errors collection, ADO itself returns errors to the exception handling mechanism of the run-time environment.
Using a knitting
Error trapping mechanisms in the process language, such as the On Error statement in Microsoft®visual basic®, can capture and handle the following errors. The following table will
While
Displays decimal and hexadecimal error code values.

Constant Name Number description
Aderrinvalidargument 3001
0x800A0BB9
The parameter used by the application is of a wrong type, is out of an acceptable range, or conflicts with other parameters.
Aderrnocurrentrecord 3021
0x800a0bcd
BOF or EOF is True, or the current record has been deleted. The requested * for application requires the current record.
Aderrillegaloperation 3219
0x800a0c93
Application requested * is not allowed to appear in this context
Aderrintransaction 3246
0x800a0cae
An application cannot explicitly close the Connection object in a transaction.
Aderrfeaturenotavailable 3251
0x800a0cb3
The provider does not support application-requested *.
adErrItemNotFound 3265
0x800a0cc1
ADO cannot find an object in the collection that corresponds to the name or order reference of the application request.
Aderrobjectincollection 3367
0x800a0d27
Cannot append, the object is already in the collection.
Aderrobjectnotset 3420 0x800a0d5c An object referenced by an application no longer points to a valid object.
Aderrdataconversion 3421
0x800a0d5d
The application uses a value type that does not conform to the current *.
Aderrobjectclosed 3704
0x800a0e78
If the object is closed, the application-requested * is not allowed.
Aderrobjectopen 3705
0x800a0e79
If the object is open, the application-requested * is not allowed.
Aderrprovidernotfound 3706
0x800a0e7a
ADO could not find the specified provider.
Aderrboundtocommand 3707
0x800a0e7b
The application cannot use the Command object to change the Recordset object's ActiveConnection property to its source data.
Aderrinvalidparaminfo 3708
0x800a0e7c
The application incorrectly defines the Parameter object.
Aderrinvalidconnection 3709
0x800a0e7d
The application requests A * for the object by referencing a closed or invalid Connection object.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.