OLE DB error occured. Code 80040E2Fh
Posted: Thu 30 Mar 2006 15:17
Allthough I try to avoid it, I sometimes get this message when testing/debugging my programs: "EOLEDBError: OLE DB error occured. Code 80040E2Fh"
Is it possible to retrieve more information than this?
If so: how?
What I do now is:
- catch the exception
- write error-message, sql-statement and parameter/field-values to a text-file.
- Edit the saved SQL-statement so it containes the literal values.
- Execute the statement in SQL Server's query analyzer
- Then I get a more meaningful message
What I would like is to retreive the more meaningful message directly in my programs.
Version info: Delphi 7.0, SDAC 3.50
Is it possible to retrieve more information than this?
If so: how?
What I do now is:
- catch the exception
- write error-message, sql-statement and parameter/field-values to a text-file.
- Edit the saved SQL-statement so it containes the literal values.
- Execute the statement in SQL Server's query analyzer
- Then I get a more meaningful message
What I would like is to retreive the more meaningful message directly in my programs.
Version info: Delphi 7.0, SDAC 3.50