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

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO NativeError 属性


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

The NativeError property returns a long value that is an error code returned to ADO by the provider or the data source.
NativeError属性的作用是:返回技术提供对象[provider]数据源的一段错误代码。

Syntax
语法

lngErrorNative=objErr.NativeError

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
%>

评论 (0) All

登陆 | 还没注册?