ویژگی SQLState ADO

تعریف و استفاده

ویژگی SQLState یک رشته پنج حرفی را بازمی‌گرداند که توسط ارائه‌دهنده بازگردانده شده است و شامل کد خطای SQL است.

قواعد دستور زبان

strErrorSQL=objErr.SQLState

مثال

<%
برای هر objErr در objConn.Errors
  response.write("<p>")
  response.write("متن توضیح: ")
  response.write(objErr.Description & "<br />")
  response.write("متن کمک: ")
  response.write(objErr.HelpContext & "<br />")
  response.write("مقابل فایل کمک: ")
  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>")
بعد میں
%>