ADO database error information table

Source: Internet
Author: User

It is easy to find.

 

In programming, it is very convenient to master error handling. For example, if you want to open a database without any errors, it will be created.

Method 1:

If not Createobject ("scripting. FileSystemObject"). fileexists (file_path) Then createdb ()

CNN. Open file_path

 

Method 2:

Const err_file_not_exists =-2147467259

On Error resume next

CNN. Open file_path

If err. Number = err_file_not_exists then

Createdb ()

CNN. Open

End if

 

Method 2 efficiency does not need to be checked every time, which is much more efficient.

 

'====================================

Unsigned signed
Hresult hex hresult description
-------------------------------------------------------------------
0x80000001-2147483647 not implemented
0x80000002-2147483646 ran out of memory
0x80000003-2147483645 one or more arguments are invalid
0x80000004-2147483644 no such interface supported
0x80000005-2147483643 Invalid Pointer
0x80000006-2147483642 invalid handle
0x80000007-2147483641 operation aborted
0x80000008-2147483640 unspecified error
0x80000009-2147483639 general access denied Error
0x8000000a-2147483638 the data necessary to complete this operation
Is not yet available.
0x80004001-2147467263 not implemented
0x80004002-2147467262 no such interface supported
0x80004003-2147467261 Invalid Pointer
0x80004004-2147467260 operation aborted
0x80004005-2147467259 unspecified error
0x80004006-2147467258 Thread Local STORAGE FAILURE
0x80004007-2147467257 get Shared Memory Allocator failure
0x80004008-2147467256 get Memory Allocator failure
0x80004009-2147467255 unable to initialize class Cache
0x8000400a-2147467254 unable to initialize RPC services
0x8000400b-2147467253 cannot set thread local storage channel control
0x8000400c-2147467252 cocould not allocate Thread Local Storage Channel
Control
0x8000400d-2147467251 the user supplied memory allocator is
Unacceptable
0x8000400e-2147467250 the OLE service mutex already exists
0x8000400f-2147467249 the OLE service file mapping already exists
0x80004010-2147467248 unable to map view of file for OLE Service
0x80004011-2147467247 failure attempting to launch Ole Service
0x80004012-2147467246 there was an attempt to call coinitialize
Second time while single threaded
0x80004013-2147467245 a remote activation was necessary but was not
Allowed
0x80004014-2147467244 a remote activation was necessary but
Server name provided was invalid
0x80004015-2147467243 the class is configured to run as a security
Id different from the caller
0x80004016-2147467242 use of ole1 services requiring DDE windows is
Disabled
0x80004017-2147467241 A RunAs specification must be
<Domain Name>/<User Name> or simply <User Name>
0x80004018-2147467240 the server process cocould not be started.
Pathname may be incorrect.
0x80004019-2147467239 the server process cocould not be started as
Configured identity. The pathname may be
Incorrect or unavailable.
0x8000401a-2147467238 the server process cocould not be started because
The configured identity is incorrect. Check
The username and password.
0x8000401b-2147467237 the client is not allowed to launch this
Server.
0x8000401c-2147467236 the service providing this server cocould not
Be started.
0x8000401d-2147467235 this computer was unable to communicate
The computer providing the server.
0x8000401e-2147467234 the server did not respond after being
Launched.
0x8000401f-2147467233 the registry information for this server
Is inconsistent or incomplete.
0x80004020-2147467232 the registration information for this interface
Is inconsistent or incomplete.
0x80004021-2147467231 the operation attempted is not supported.
0x8000ffff-2147418113 catastrophic failure
0x80070005-2147024891 general access denied Error
0x80070006-2147024890 invalid handle
0x8007000e-2147024882 ran out of memory
0x80070057-2147024809 one or more arguments are invalid

Debugging hresults from OLE-DB
Some OLE-DB error messages, such as 80040e37 (Table 'X' does not exist) are fairly obvious whether using ADO or OLE-DB. others such as 0x80040e06 (invalid chapter) are not as clear to An ADO developer. you can use the itest/ispy tools that ship with the OLE-DB SDK to spy on the OLE-DB CILS. itest/ispy are simliar to ODBC spy and you can use them for complex debugging in ADO/DB applications.

This list was compiled from the oledberr. h file, which ships with the OLE-DB SDK:

Unsigned signed
Hresult hex hresult description
-------------------------------------------------------------------
0x80040e00-2147217920 invalid accessor
0x80040e01-2147217919 creating another row wocould have exceeded
Total number of active rows supported by
Rowset
0x80040e02-2147217918 unable to write with a read-only accessor
0x80040e03-2147217917 given values violate the database schema
0x80040e04-2147217916 invalid row handle
0x80040e05-2147217915 an object was open
0x80040e06-2147217914 invalid chapter
0x80040e07-2147217913 a literal value in the Command cocould not be
Converted to the correct type due to a reason
Other than data Overflow
0x80040e08-2147217912 Invalid binding info
0x80040e09- 2147217911 permission denied
0x80040e0a-2147217910 specified column does not contain bookmarks or
Chapters
0x80040e0b-2147217909 some cost limits were rejected
0x80040e0c-2147217908 no command has been set for the command object
0x80040e0d-2147217907 unable to find a query plan within the given
Cost limit
0x80040e0e-2147217906 invalid bookmark
0x80040e0f-2147217905 invalid lock mode
0x80040e10-2147217904 no value given for one or more required
Parameters
0x80040e11-2147217903 invalid column ID
0x80040e12-2147217902 invalid Ratio
0x80040e13-2147217901 invalid value
0x80040e14-2147217900 the command contained one or more errors
0x80040e15-2147217899 the Executing command cannot be canceled
0x80040e16-2147217898 the provider does not support the specified
Dialect
0x80040e17-2147217897 a data source with the specified name already
Exists
0x80040e18-2147217896 the rowset was built over a live data feed and
Cannot be restarted
0x80040e19-2147217895 no key matching the described characteristics
Cocould be found within the current range
0x80040e1a-2147217894 ownership of this tree has been given to
Provider
0x80040e1b-2147217893 the provider is unable to determine identity
For newly inserted rows
0x80040e1c-2147217892 no nonzero weights specified for any goals
Supported, so goal was rejected; current goal
Was not changed
0x80040e1d-2147217891 requested conversion is not supported
0x80040e1e-2147217890 lrowsoffset wocould position you past either end
Of the rowset, regardless of the crows Value
Specified; crowsobtained is 0
0x80040e1f-2147217889 information was requested for a query, and
Query was not set
0x80040e20-2147217888 provider called a method from irowsetpolicy in
The consumer and NT
0x80040e21-2147217887 errors occurred
0x80040e22-2147217886 a non-null controlling iunknown was specified
And the object being created does not support
Aggregation
0x80040e23-2147217885 a given hrow referred to a hard-or soft-
Deleted row
0x80040e24-2147217884 the rowset does not support fetching backwards
0x80040e25-2147217883 all hrows must be released before new ones can
Be obtained
0x80040e26-2147217882 one of the specified storage flags was not
Supported
0x80040e28-2147217880 the specified status flag was neither
Dbcolumnstatus_ OK nor dbcolumnstatus_isnull
0x80040e29-2147217879 the rowset cannot scroll backwards
0x80040e2a-2147217878 invalid region handle
0x80040e2b-2147217877 the specified set of rows was not contiguous
Or overlapping the rows in the specified watch
Region
0x80040e2c-2147217876 a transition from all * To move * or extend * was
Specified
0x80040e2d-2147217875 the specified region is not a proper subregion
Of the region identified by the given watch
Region handle
0x80040e2e-2147217874 the provider does not support multi-Statement
Commands
0x80040e2f-2147217873 a specified value violated the integrity
Constraints for a column or table
0x80040e30-2147217872 the given type name was unrecognized
0x80040e31-2147217871 execution aborted because a resource limit has
Been reached; no results have been returned
0x80040e32-2147217870 cannot clone a command object whose command
Tree contains a rowset or rowsets
0x80040e33-2147217869 cannot represent the current tree as text
0x80040e34-2147217868 the specified index already exists
0x80040e35-2147217867 the specified index does not exist
0x80040e36-2147217866 the specified index was in use
0x80040e37-2147217865 the specified table does not exist
0x80040e38-2147217864 the rowset was using optimistic concurrency and
The value of a column has been changed since
It was last read
0x80040e39-2147217863 errors were detected during the copy
0x80040e3a-2147217862 a specified precision was invalid
0x80040e3b-2147217861 a specified scale was invalid
0x80040e3c-2147217860 invalid table ID
0x80040e3d-2147217859 a specified type was invalid
0x80040e3e-2147217858 a column ID was occurred more than once in
Specification
0x80040e3f-2147217857 the specified table already exists
0x80040e40-2147217856 the specified table was in use
0x80040e41-2147217855 the specified locale ID was not supported
0x80040e42-2147217854 the specified record number is invalid
0x80040e43-2147217853 although the bookmark was validly formed, no
Row cocould be found to match it
0x80040e44-2147217852 the value of a property was invalid
0x80040e45-2147217851 the rowset was not chaptered
0x80040e46-2147217850 invalid accessor
0x80040e47-2147217849 invalid storage flags
0x80040e48-2147217848 by-ref accessors are not supported by this
Provider
0x80040e49-2147217847 null accessors are not supported by this
Provider
0x80040e4a-2147217846 the command was not prepared
0x80040e4b-2147217845 the specified accessor was not a parameter
Accessor
0x80040e4c-2147217844 the given accessor was write-only
0x80040e4d-2147217843 authentication failed
0x80040e4e-2147217842 the change was canceled during notification; no
Columns are changed
0x80040e4f-2147217841 the rowset was single-chaptered and the chapter
Was not released
0x80040e50-2147217840 Invalid Source handle
0x80040e51-2147217839 the provider cannot derive parameter info and
Setparameterinfo has not been called
0x80040e52-2147217838 the data source object is already initialized
0x80040e53-2147217837 the provider does not support this method
0x80040e54-2147217836 the number of rows with pending changes has
Exceeded the set limit
0x80040e55-2147217835 the specified column did not exist
0x80040e56-2147217834 there are pending changes on a row with
Reference count of zero
0x80040e57-2147217833 a literal value in the Command overflowed
Range of the type of the associated Column
0x80040e58-2147217832 the supplied hresult was invalid
0x80040e59-2147217831 the supplied lookupid was invalid
0x80040e5a-2147217830 the supplied dynamicerrorid was invalid
0x80040e5b-2147217829 unable to get Visible data for a newly-inserted
Row that has not yet been updated
0x80040e5c-2147217828 invalid conversion flag
0x80040e5d-2147217827 the given parameter name was unrecognized
0x80040e5e-2147217826 multiple storage objects can not be open
Simultaneously
0x00040ec0 265920 fetching requested number of rows wocould have
Exceeded total number of active rows supported
By the rowset
0x00040ec1 265921 one or more column types are incompatible;
Conversion errors will occur during copying
0x00040ec2 265922 parameter type information has been overridden
By caller
0x00040ec3 265923 skipped bookmark for deleted or non-member row
0x00040ec4 265924 errors found in validating tree
0x00040ec5 265925 there are no more rowsets
0x00040ec6 265926 reached start or end of rowset or chapter
0x00040ec7 265927 the provider re-executed the command
0x00040ec8 265928 variable data buffer full
0x00040ec9 265929 there are no more results
0x00040eca 265930 server cannot release or downgrade a lock
The end of the transaction
0x00040ecb 265931 specified weight was not supported or exceeded
The supported limit and was set to 0 or
Supported limit
0x00040edud 265933 input dialect was ignored and text was returned
In different dialect
0x00040ece 265934 consumer is uninterested in processing ing further
Notification CILS for this phase
0x00040ecf 265935 consumer is uninterested in processing ing further
Notification CILS for this reason
0x00040ed1 265937 in order to reposition to the start of
Rowset, the provider had to reexecute
Query; either the order of the columns changed
Or columns were added to or removed from
Rowset
0x00040ed2 265938 the method had some errors; errors have been
Returned in the error Array
0x00040ed3 265939 invalid row handle
0x00040ed4 265940 a given hrow referred to a hard-deleted row
0x00040ed5 265941 the provider was unable to keep track of all
The changes; the client must refetch the data
Associated with the watch region using another
Method
0x00040ed6 265942 execution stopped because a resource limit has
Been reached; results obtained so far have been
Returned but execution cannot be resumed
0x00040ed8 265944 a lock was upgraded from the value specified
0x00040ed9 265945 one or more properties were changed as allowed
By provider
0x00040eda 265946 errors occurred
0x00040edb 265947 a specified parameter was invalid
0x00040edc 265948 updating this row caused more than one row
Be updated in the data source

 

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.