Main topic: [ADO error code description] Author: Bohut: 215 Forum: VC / MFC Database problem point: 0 Reposted: 7 Posted: 2004-12-29 9:11:07
When using ADO, we often use it in the program.
Try
{
//
}
Catch (_COM_ERROR E)
{
MessageBox (E.ErrorMessage ());
........
}
To capture the exception information of ADO, but
E.ErrorMessage () Output is often some error numbers
For example: Idispatch Error # 3748
Is we still can't understand which aspect of the operation leads to an exception
Let's give the error code in ADO and the corresponding description information, I hope to help everyone!
3707 Application cannot change the ActiveComnection property of the Recordset object, as a Command object as its source
3732 cannot complete the action
3748 Cannot change connection
3220 Cannot change the provider
3724 Cannot Convert Value Can't create resources
3747 Category is not set, so action cannot be performed
3726 There is no specified column in this line.
3421 For current applications, the application uses the value of the error type
3721 Data beyond the range of reference types
3738 Cannot delete resources, which exceeds the allowable range
3750 Can't set up DENY permissions because the provider does not support
3751 Provider does not support request DENY types
3251 Provider does not support the operation of the application request
3749 Fields collection DPDATE method failed
3219 In this environment, the application request is not allowed.
3719 Because of the violation of the integrity of the data, the operation failed
3246 In the transaction, the application cannot explicitly shut down the Connection object.
3001 Parameter type error used by the application, possibly beyond the range or conflicts with other types
3709 Application requests a reference to an operation of an object, and the reference points to an off or invalid Connection object
3708 Application does not properly define a parameter object
3714 transaction invalid
3729 Provided URL is invalid
3265 ADO did not find an object in the collection
One of the 3021 BOF and EOF is true, or the current record has been deleted, and the application's request operation requires the current record.
3715 operation is not in the process
3710 operation cannot be re-executed
3704 If the object is closed, the application requests are not allowed
3367 objects have been in the collection, can't append
3420 The object referenced by the application no longer points to a valid object
3705 If the object has been opened, the application requests are not allowed
3002 When the request file is opened, an error occurs.
3712 operation is canceled
3734 Because the server does not have enough space to complete the operation, the operation failed
3720 Because the user does not have enough permissions to complete the operation, the operation failed
3742 Setting this property and conflicts with other attributes
3739 This property is invalid for the selected column.
3740 provides an invalid choice to attributes
3741 Provide an invalid value to the attribute
3743 is not all attributes can be set
3744 Attribute is not set
3745 Attributes cannot be set
3746 Attribute is not supported
3000 provider failure
3706 ADO can't find the specified provider
3003 error occurs when reading the specified file
3731 resource already exists
3730 resource is locked
3735 resource exceeding range
3722 Action violates the mode
3723 Expression contains mismatched symbols
3713 operation is still in connection
3711 operation is still executing
3728 No authority for directory tree
3736 command is not available
3716 running in this case
3727 URL does not exist
3737 URL in the name of the name does not exist
3733 file version information did not find
3004 has an error when writing a file
3717 operation leads out a safety conversation
3718 operation leads to a safety dialogue
Constant name
Decimal number
Hexadecimal number
Description
Aderrinvalidargument
3001
0x800A0BB9
The parameter used by the application is incorrect, exceeds an acceptable range or conflicts with other parameters.
AderrnocurrentRecord
3021
0x800A0BCD
BOF or EOF is true, or the current record has been deleted. The operation requested by the application requires the current record.
Aderrillegaloperation
3219
0x800A0C93
The operation of the application request is not allowed to appear in this context
Aderrintransaction
3246
0x800A0CAE
The application cannot be explicitly closed in the transaction.
AdrfeatureNotavailable
3251
0x800A0CB3
The provider does not support the operation of the application request.
AderritemNotfound
3265
0x800A0CC1
The ADO cannot find an object in a collection corresponding to the name or order reference corresponding to the application request.
ADERROBJECTINCOLLECTION
3367
0x800A0D27
Unable to append, the object is already in the collection.
AnderRobjectNotset
3420
0x800A0D5C
The object referenced by the application no longer points to a valid object.
ADERRDATACONVERSIONVERSIONVERSIONVERSION
3421
0x800A0D5D
The application uses a value type that does not meet the current operation.
aderrobjectClosed
3704
0x800a0e78
If the object is closed, the application requests are not allowed.
AnderRobjectopen 3705
0x800a0e79
If an object is open, the application requests are not allowed.
AnderrProviderNotfound
3706
0x800a0e7a
ADO does not find the specified provider.
AderrboundTocommand
3707
0x800A0E7B
The application cannot use the Command object to change the ActiveConnection property of the Recordset object to its source data.
Aderrinvalidparaminfo
3708
0x800A0E7C
The application is incorrectly defined by the Parameter object.
AderrinvalidConnection 3709
0x800A0E7D
The application requests the operation of the object by reference to the closed or invalid Connection object.
Some of the above sections may have some repetition, and the second part is less detailed, and it can be contrasted!