设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 4511|回复: 2
打印 上一主题 下一主题

[ADO/DAO] OLE-DB到ADO错误代码一览。

[复制链接]
跳转到指定楼层
1#
发表于 2003-10-30 21:20:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
SQL服务器里面的2627错误(在不允许重复的字段输入重复值),到了ACCESS里面变成了-2147217873,搞不懂怎么来的。查了半天资料,终于找到。msdn上面只是一小部分。

我知道大部分人都没有用。不过到要用的时候,就不好找了。

http://www.thecoffeeplace.com/om/aaaaaawh.html

上面就是地址。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
 楼主| 发表于 2003-10-30 21:23:00 | 只看该作者
Frequently Encountered HRESULTS from OLE
This list was compiled from the Winerror.h file, which ships with the Win32 SDK. This list is actually a sub-set of a much more complete set of OLE errors. However, this is the set this most likely to be raised by OLE or OLE-DB to ADO.
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 Could 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 a second time while single threaded
0x80004013 -2147467245 A Remote activation was necessary but was not allowed
0x80004014 -2147467244 A Remote activation was necessary but the 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 \ or simply 0x80004018 -2147467240 The server process could not be started. The pathname may be incorrect.
0x80004019 -2147467239 The server process could not be started as the configured identity. The pathname may be incorrect or unavailable.
0x8000401A -2147467238 The server process could 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 could not be started.
0x8000401D -2147467235 This computer was unable to communicate with the computer providing the server.
0x8000401E -2147467234 The server did not respond after being launched.
0x8000401F -2147467233 The registration 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
3#
 楼主| 发表于 2003-10-30 21:23:00 | 只看该作者
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 calls. ITest/ISpy are similar 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 would have exceeded the total number of active rows supported by the 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 could 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 could be found within the current range
0x80040E1A -2147217894 Ownership of this tree has been given to the 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 would 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 the query was not set
0x80040E20 -2147217888 Provider called a method from IRowsetNotify 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
0x80040E27 -2147217881 The comparison operator was invalid
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 to 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-11-1 15:20 , Processed in 0.090682 second(s), 27 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表