OLE DB Error details

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 1
Joined: Wed 18 Jul 2012 07:59

OLE DB Error details

Post by VictorG » Tue 19 Aug 2014 10:31


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".


Devart Team
Posts: 1057
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: OLE DB Error details

Post by azyk » Thu 21 Aug 2014 10:38

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

Post Reply