ADO Source 属性

定义和用法

Source 属性可返回一个字符串值,指示最初产生错误的对象或应用程序的名称。

语法

  1. strErrorSource=objErr.Source

实例

  1. <%
  2. for each objErr in objConn.Errors
  3. response.write("<p>")
  4. response.write("Description: ")
  5. response.write(objErr.Description & "<br />")
  6. response.write("Help context: ")
  7. response.write(objErr.HelpContext & "<br />")
  8. response.write("Help file: ")
  9. response.write(objErr.HelpFile & "<br />")
  10. response.write("Native error: ")
  11. response.write(objErr.NativeError & "<br />")
  12. response.write("Error number: ")
  13. response.write(objErr.Number & "<br />")
  14. response.write("Error source: ")
  15. response.write(objErr.Source & "<br />")
  16. response.write("SQL state: ")
  17. response.write(objErr.SQLState & "<br />")
  18. response.write("</p>")
  19. next
  20. %>