ADO నేటివ్ ఎరర్ అట్రిబ్యూట్

నిర్వచనం మరియు వినియోగం

నేటివ్ ఎరర్ అట్రిబ్యూట్ ఒక లాంబ్ విలువను తిరిగి ఇస్తుంది, దానిలో ప్రొవైడర్ లేదా డేటా స్రోతు ఆడో లో తిరిగి ఇచ్చిన ఎరర్ కోడ్ ఉంటుంది.

నేటివ్ ఎరర్ అట్రిబ్యూట్ ద్వారా కొన్ని ఎరర్ ఆబ్జెక్ట్ పరిధిలోని డేటాబేస్ ప్రత్యేక ఎరర్ సమాచారాన్ని పరిశీలించండి. ఉదాహరణకు, మైక్రోసాఫ్ట్ ODBC Provider for OLE DB మరియు మైక్రోసాఫ్ట్ SQL Server డేటాబేస్ కలిసి ఉపయోగించినప్పుడు, SQL Server ద్వారా ప్రాణికంగా సృష్టించబడే నేటివ్ ఎరర్ కోడ్ ఐఓడిసి మరియు ఐఓడిసి ప్రొవైడర్ ద్వారా ADO NativeError అట్రిబ్యూట్ కు పంపబడుతుంది.

విధానం

lngErrorNative=objErr.NativeError

ఉదాహరణ

<%
for each objErr in 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>")
తదుపరి
%>