title: Retrieving ADO errors using Delphi
body: <p>I'm using Delphi 2007 with ADO to access a SQL Server 2008 database.</p>
  
  <p>A stored procedure on the database prevalidates the input and if the validation fails it returns an error result set (containing custom error info). Using SQL Server Management Studio, when I run the stored procedure, I get the custom error result set in one tab and the native error message in another.</p>
  
  <p>Back in my Delphi app, when I open the stored procedure, I can access the custom error result set. However, the <code>Errors</code> object on the ADO connection does not contain the native error.</p>
  
  <p>How do I access the <code>Errors</code> collection object so I can provide more information about the cause of the error ?</p>
  
  <p>Thanks</p>