当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Number 属性

ADO
ADO介绍
ADO数据库连接
ADO记录集
ADO显示记录
ADO查询语句
ADO记录排序
ADO添加记录
ADO更新记录
ADO删除记录
ADO演示
ADO提升执行速度
ADO Command对象
ADO Connection对象
ADO Error
ADO Field
ADO Parameter
ADO 属性
ADO Record
ADO Recordset
ADO Stream

ADO Number 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 437 ::
收藏到网摘: n/a

The Number property returns a long value that is a unique number that can take one of the ErrorValueEnum values. The number describes the error generated by ADO. If the error was generated by the provider, this property may be set to an unspecific error value.
Number属性的作用是:返回一个用于指示ADO错误的独立数字,其数值为ErrorValueEnum值中的一个。如果技术提供对象[provider]产生了错误,那么该属性可能返回一个不确定的错误值。

The numbers are equivalent to the Windows API HRESULTS values.
该数值与Windows API HRESULTS值相等。

Syntax
语法

lngErrorNumber=objErr.Number

Example
案例

<%
for each objErr in objConn.Errors response.write("<p>") response.write("Description: ") response.write(objErr.Description & "<br />") response.write("Help context: ") response.write(objErr.HelpContext & "<br />") response.write("Help file: ") response.write(objErr.HelpFile & "<br />") response.write("Native error: ") response.write(objErr.NativeError & "<br />") response.write("Error number: ") response.write(objErr.Number & "<br />") response.write("Error source: ") response.write(objErr.Source & "<br />") response.write("SQL state: ") response.write(objErr.SQLState & "<br />") response.write("</p>")
next
%>


ErrorValueEnum Values

Constant常量 Value值 Description描述
adErrBoundToCommand 3707
-2146824581
0x800A0E7B
Cannot change the ActiveConnection property of a Recordset object which has a Command object as its source
应用程序无法用 Command 对象将 Recordset 对象的 ActiveConnection 属性更改为它的来源数据
adErrCannotComplete 3732
-2146824556
0x800A0E94
Server cannot complete the operation
服务器不能完成操作
adErrCantChangeConnection 3748
-2146824540
0x800A0EA4
Connection was denied
连接被拒绝
adErrCantChangeProvider 3220
-2146825068
0X800A0C94
Supplied provider is different from the one already in use
所提供的技术提供对象[provider]与当前所使用的并不相同
adErrCantConvertvalue 3724
-2146824564
0x800A0E8C
Data value cannot be converted
不能转换数据
adErrCantCreate 3725
-2146824563
0x800A0E8D
Data value cannot be set or retrieved
不能设置或提取数据
adErrCatalogNotSet 3747
-2146824541
0x800A0EA3
Operation requires a valid ParentCatalog
需要设置一个有效的上级目录才能执行操作
adErrColumnNotOnThisRow 3726
-2146824562
0x800A0E8E
Record does not contain this field
记录中不包含该字段
adErrDataConversion 3421
-2146824867
0x800A0D5D
Application uses a value of the wrong type
应用程序使用了一个错误的类型值
adErrDataOverflow 3721
-2146824567
0x800A0E89
Data value is too large
数值太大
adErrDelResOutOfScope 3738
-2146824550
0x800A0E9A
URL of the object to be deleted is outside the scope of the current record
被删除对象的URL超出当前记录的范围
adErrDenyNotSupported 3750
-2146824538
0x800A0EA6
Provider does not support sharing restrictions
技术提供对象[provider]不支持共享限制
adErrDenyTypeNotSupported 3751
-2146824537
0x800A0EA7
Provider does not support the kind of sharing restriction
技术提供对象[provider]不支持共享限制的类型
adErrFeatureNotAvailable 3251
-2146825037
0x800A0CB3
Object/Provider is not capable of performing requested operation
对象/技术提供对象[provider]不能够执行所请求的操作
adErrFieldsUpdateFailed 3749
-2146824539
0x800A0EA5
Fields update failed
字段更新失败
adErrIllegalOperation 3219
-2146825069
0x800A0C93
Operation is not allowed in this context
此环境下不允许该操作
adErrIntegrityViolation 3719
-2146824569
0x800A0E87
Data value conflicts with the integrity constraints of the field
数值与字段的限制区间发生冲突
adErrInTransaction 3246
-2146825042
0x800A0CAE
Connection object cannot be closed while in a transaction
在一个事物中Connection对象不能关闭
adErrInvalidArgument 3001
-2146825287
0x800A0BB9
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another
自变量类型错误、超出允许范围或与其它自变量发生冲突
adErrInvalidConnection 3709
-2146824579
0x800A0E7D
The connection cannot be used to perform this operation. It is either closed or invalid in this context
连接不能用于执行该操作。它在该环境下可能已被关闭或者已经失效
adErrInvalidParamInfo 3708
-2146824580
0x800A0E7C
Parameter object is improperly defined
Parameter[参数]对象被不恰当的拒绝
adErrInvalidTransaction 3714
-2146824574
0x800A0E82
Coordinating transaction is invalid
坐标失效
adErrInvalidURL 3729
-2146824559
0x800A0E91
URL contains invalid characters
URL中包含无效字符
adErrItemNotFound 3265
-2146825023
0x800A0CC1
Item cannot be found in the collection corresponding to the requested name or ordinal
不能在所请求的名称集或序数集中找到该项
adErrNoCurrentRecord 3021
-2146825267
0x800A0BCD
Either BOF or EOF is True, or the current record has been deleted
可能已位于文本的最前端或最末端,或者当前记录已被删除
adErrNotExecuting 3715
-2146824573
0x800A0E83
Cannot perform operation while not executing
操作不可执行
adErrNotReentrant 3710
-2146824578
0x800A0E7E
Cannot perform operation while processing
不能执行处理操作
adErrObjectClosed 3704
-2146824584
0x800A0E78
Operation not allowed when the object is closed
当对象关闭时不允许操作
adErrObjectInCollection 3367
-2146824921
0x800A0D27
Object is already in collection. Cannot append
对象已位于对象集合中,不允许再追加对象
adErrObjectNotSet 3420
-2146824868
0x800A0D5C
Object is no longer valid
对象已经失效
adErrObjectOpen 3705
-2146824583
0x800A0E79
Operation not allowed when the object is open
当对象被打开时不允许操作
adErrOpeningFile 3002
-2146825286
0x800A0BBA
Could not open file
不能打开文件
adErrOperationCancelled 3712
-2146824576
0x800A0E80
Operation cancelled by the user
操作被用户取消
adErrOutOfSpace 3734
-2146824554
0x800A0E96
Cannot perform operation. Provider cannot obtain enough storage space
不能执行操作。技术提供对象[provider]不再包含足够的存储空间
adErrPermissionDenied 3720
-2146824568
0x800A0E88
Permission denied when writing to the field
不具有字段写入权限
adErrProviderFailed 3000
-2146825288
0x800A0BB8
Provider failed to perform the operation
技术提供对象[provider]执行操作失败
adErrProviderNotFound 3706
-2146824582
0x800A0E7A
Provider cannot be found
技术提供对象[provider]不能被找到
adErrReadFile 3003
-2146825285
0x800A0BBB
File could not be read
文件不能读取
adErrResourceExists 3731
-2146824557
0x800A0E93
Cannot perform copy operation. Object already exists. Specify adCopyOverwrite to replace the object
不能执行复制操作,因为对象已经存在。指定adCopyOverwrite来替代对象
adErrResourceLocked 3730
-2146824558
0x800A0E92
Object is locked by other processes
对象被其它进程锁住
adErrResourceOutOfScope 3735
-2146824553
0x800A0E97
URL/Source outside scope of current record
URL/Source[源]超出当前记录范围
adErrSchemaViolation 3722
-2146824566
0x800A0E8A
Data value conflicts with data type or constraints
数据值与数据类型或数据限制冲突
adErrSignMismatch 3723
-2146824565
0x800A0E8B
Conversion failed because the data value is signed and the field data type is unsigned
由于数据带有正负符号,而字段数据不带有负号,这样导致转换失败
adErrStillConnecting 3713
-2146824575
0x800A0E81
Cannot perform operation while connecting asynchronously
当异步连接时不能执行操作
adErrStillExecuting 3711
-2146824577
0x800A0E7F
Cannot perform operation while executing asynchronously
当异步执行时不能执行操作
adErrTreePermissionDenied 3728
-2146824560
0x800A0E90
Permission denied accessing tree or subtree
不具备访问树结构或子类树结构的权限
adErrUnavailable 3736
-2146824552
0x800A0E98
Operation failed and the status is unavailable
操作失败、状态失效
adErrUnsafeOperation 3716
-2146824572
0x800A0E84
Cannot access data source on another domain
不能访问其他域名上的数据源
adErrURLDoesNotExist 3727
-2146824561
0x800A0E8F
The URL does not exist
URL不存在
adErrURLNamedRowDoesNotExist 3737
-2146824551
0x800A0E99
Record does not exist
记录不存在
adErrVolumeNotFound 3733
-2146824555
0x800A0E95
Provider cannot locate the storage device. Make sure the URL is typed correctly
技术提供对象[provider]不能定位或存储设备。必须确认URL类型是否正确
adErrWriteFile 3004
-2146825284
0x800A0BBC
Failed when writing to file
写入文件失败
adWrnSecurityDialog 3717
-2146824571
0x800A0E85
Not in use
不可使用
adWrnSecurityDialogHeader 3718
-2146824570
0x800A0E86
Not in use
不可使用

评论 (0) All

登陆 | 还没注册?