当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO SQLState 属性
The SQLState property returns a string that contains a 5-character SQL error code returned by the provider.
SQLState属性的作用是:返回一个包含一个“5字符”的由技术提供对象[provider]所返回的SQL错误代码的字符串。
strErrorSQL=objErr.SQLState |
<% 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 %> |