Page 1 of 1

OLE DB Error details

Posted: Tue 19 Aug 2014 10:31
by VictorG
Hello,

I'm doing some tests with exceptions with Delphi 2007 and SQL Server 2012 (SDAC 6.10.21). With errors in a stored procedure for instance, it works fine because I can get the original message from EOLEDBError.MessageWide. But if a do a kill of my session I get a "Unspecified error" and an ErrorCode 80004005.

I'm wondering if there's a way to have a more detailed error message somewhere in a hidden API ? Otherwise maybe I should consider this message as a "Lost link with the server".

Thanks

Re: OLE DB Error details

Posted: Thu 21 Aug 2014 10:38
by azyk
The 80004005 error code is not an internal SDAC error. This error is returned by OLE DB. More details about this error can be found at:
http://blogs.msdn.com/b/dataaccesstechn ... oting.aspx