当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO Source 属性
The Source property returns a string value that contains the name of the object or application that generated the error.
Source属性的作用是:以一个字符串值的形式返回出错的对象名或应用程序名。
strErrorSource=objErr.Source |
<% 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 %> |