0
点赞
收藏
分享

微信扫一扫

ADO Error Codes

践行数据分析 2022-05-19 阅读 33


Constant Name



Number



Description



adErrBoundToCommand



3707



The application cannot change the ActiveConnection property of a Recordset object with a Command object as its source.



adErrCannotComplete



3732



The action could not be completed.



adErrCantChangeConnection



3748



The connection cannot be changed.



adErrCantChangeProvider



3220



The provider cannot be changed.



adErrCantConvertvalue



3724



The value cannot be converted.



adErrCantCreate



3725



The resource cannot be created.



adErrCatalogNotSet



3747



The action could not be completed because the catalog is not set.



adErrColumnNotOnThisRow



3726



The specified column doesn't exist on this row.



adErrDataConversion



3421



The application is using a value of the wrong type for the current application.



adErrDataOverflow



3721



The data was too large for the supplied data type.




Constant Name



Number



Description



adErrDelResOutOfScope



3738



The resource cannot be deleted because it is out of the allowed scope.



adErrDenyNotSupported



3750



You cannot set Deny permissions because the provider does not support them.



adErrDenyTypeNotSupported



3751



The provider does not support the type of Deny requested.



adErrFeatureNotAvailable



3251



The provider does not support the operation requested by the application.



adErrFieldsUpdateFailed



3749



The Update method of the Fields collection failed.



adErrIllegalOperation



3219



The operation requested by the application is not allowed in this context.



adErrIntegrityViolation



3719



The action failed due to a violation of data integrity.



adErrInTransaction



3246



The application cannot explicitly close a Connection object while in the middle of a transaction.



adErrInvalidArgument



3001



The application is using arguments that are the wrong type, are out of the acceptable range, or are in conflict with one another.



adErrInvalidConnection



3709



The application requested an operation on an object with a reference to a closed or invalid Connection object.



adErrInvalidParamInfo



3708



The application has improperly defined a Parameter object.



adErrInvalidTransaction



3714



The transaction is invalid.



adErrInvalidURL



3729



The supplied URL is invalid.



adErrItemNotFound



3265



ADO could not find the object in the collection.



adErrNoCurrentRecord



3021



Either BOF or EOF is True, or the current record has been deleted. The operation requested by the application requires a current record.



adErrNotExecuting



3715



The operation is not executing.




Constant Name



Number



Description



adErrNotReentrant



3710



The operation is not reentrant.



adErrObjectClosed



3704



The operation requested by the application is not allowed if the object is closed.



adErrObjectInCollection



3367



Can't append. Object already in collection.



adErrObjectNotSet



3420



The object referenced by the application no longer points to a valid object.



adErrObjectOpen



3705



The operation requested by the application is not allowed if the object is open.



adErrOpeningFile



3002



An error occurred whilst opening the requested file.



adErrOperationCancelled



3712



The operation was cancelled.



adErrOutOfSpace



3734



The operation failed because the server could not obtain enough space to complete the operation.



adErrPermissionDenied



3720



The action failed because you do not have sufficient permission to complete the operation.



adErrPropConflicting



3742



Setting this property caused a conflict with other properties.



adErrPropInvalidColumn



3739



This property is invalid for the selected column.



adErrPropInvalidOption



3740



You have supplied an invalid option for this property.



adErrPropInvalidValue



3741



You have supplied an invalid value for this property.



adErrPropNotAllSettable



3743



Not all properties can be set.



adErrPropNotSet



3744



The property was not set.



adErrPropNotSettable



3745



The property cannot be set.



adErrPropNotSupported



3746



The property is not supported.



adErrProviderFailed



3000



The provider failed to complete the requested action.



adErrProviderNotFound



3706



ADO could not find the specified provider.




Constant Name



Number



Description



adErrReadFile



3003



There was an error reading from the specified file.



adErrResourceExists



3731



The resource already exists.



adErrResourceLocked



3730



The resource is locked.



adErrResourceOutOfScope



3735



The resource is out of scope.



adErrSchemaViolation



3722



The action caused a violation of the schema.



adErrSignMismatch



3723



The expression contained mismatched signs.



adErrStillConnecting



3713



The operation is still connecting.



adErrStillExecuting



3711



The operation is still executing.



adErrTreePermissionDenied



3728



You do not have permission to view the directory tree.



adErrUnavailable



3736



The command is unavailable.



adErrUnsafeOperation



3716



The operation is unsafe under these circumstances.



adErrURLDoesNotExist



3727



The URL does not exist.



adErrURLNamedRowDoes
NotExist



3737



The URL in the named row does not exist.



adErrVolumeNotFound



3733



The file volume was not found.



adErrWriteFile



3004



There was an error whilst writing to the file.



adwrnSecurityDialog



3717



The operation caused a security dialog to appear.



adwrnSecurityDialogHeader



3718



The operation caused a security dialog header to appear.



The following lists the extended ADO errors and their descriptions:



Error Number



Description



-2147483647



Not implemented.



-2147483646



Ran out of memory.



-2147483645



One or more arguments are invalid.



-2147483644



No such interface supported.



-2147483643



Invalid pointer.



-2147483642



Invalid handle.



-2147483641



Operation aborted.



-2147483640



Unspecified error.



-2147483639



General access denied error.



-2147483638



The data necessary to complete this operation is not yet available.



-2147467263



Not implemented.



-2147467262



No such interface supported.



-2147467261



Invalid pointer.



-2147467260



Operation aborted.



-2147467259



Unspecified error.



-2147467258



Thread local storage failure.



-2147467257



Get shared memory allocator failure.



-2147467256



Get memory allocator failure.



-2147467255



Unable to initialize class cache.



-2147467254



Unable to initialize RPC services.



-2147467253



Cannot set thread local storage channel control.



-2147467252



Could not allocate thread local storage channel control.



-2147467251



The user supplied memory allocator is unacceptable.



-2147467250



The OLE service mutex already exists.



-2147467249



The OLE service file mapping already exists.



-2147467248



Unable to map view of file for OLE service.



-2147467247



Failure attempting to launch OLE service.




Error Number



Description



-2147467246



There was an attempt to call CoInitialize a second time while single threaded.



-2147467245



A Remote activation was necessary but was not allowed.



-2147467244



A Remote activation was necessary but the server name provided was invalid.



-2147467243



The class is configured to run as a security id different from the caller.



-2147467242



Use of OLE1 services requiring DDE windows is disabled.



-2147467241



A RunAs specification must be <domain name>"<user name> or simply <user name>.



-2147467240



The server process could not be started. The pathname may be incorrect.



-2147467239



The server process could not be started as the configured identity. The pathname may be incorrect or unavailable.



-2147467238



The server process could not be started because the configured identity is incorrect. Check the username and password.



-2147467237



The client is not allowed to launch this server.



-2147467236



The service providing this server could not be started.



-2147467235



This computer was unable to communicate with the computer providing the server.



-2147467234



The server did not respond after being launched.



-2147467233



The registration information for this server is inconsistent or incomplete.



-2147467232



The registration information for this interface is inconsistent or incomplete.



-2147467231



The operation attempted is not supported.



-2147418113



Catastrophic failure.



-2147024891



General access denied error.



-2147024890



Invalid handle.



-2147024882



Ran out of memory.



-2147024809



One or more arguments are invalid.





举报

相关推荐

0 条评论