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

ADO
ADO DataTypes
ADO 摘要
ADO 实例

ADO Source 属性


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

The Source property returns a string value that contains the name of the object or application that generated the error. 
Source属性的作用是:以一个字符串值的形式返回出错的对象名或应用程序名。

Syntax
语法

strErrorSource=objErr.Source

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

登陆 | 还没注册?