Page 1 of 1

Trying to get actual error message with TZConnection for Firebird Database

Posted: 18.07.2018, 19:44
by sharifuldead
I am trying to get actual error message on connecting to Firebird database with TZConnection. But both gives me overall error message, please check the following messages. How can I get actual error message like if I enter wrong password it will provide actual firebird error message.

SQL Error: connection lost to database. Error Code: -901. can't format message 13:99 -- message file C:\WINDOWS\SYSTEM32\firebird.msg not found
StatusCode:
ErrorCode:-901


whereas with Delphi Tokyo 10.2.3 with the same version of zeos 7.2.4 I got following:
Delphi Tokyo with pl_ZeosDBO 7.24 stable SQL Error: I/O error during "CreateFile (open)" operation for file "E:\TAUTUA.FDB645" Error while trying to open file The system cannot find the file specified. . Error Code: -902. can't format message 13:98 -- message file C:\WINDOWS\SYSTEM32\firebird.msg not found

Re: Trying to get actual error message with TZConnection for Firebird Database

Posted: 19.07.2018, 07:16
by marsupilami
Hello,

hmm - usually Firebird is telling you much more. Zeos only checks for an error and then asks Firebird to describe the error. This part seems to fail on your system:
can't format message 13:99 -- message file C:\WINDOWS\SYSTEM32\firebird.msg not found
can't format message 13:98 -- message file C:\WINDOWS\SYSTEM32\firebird.msg not found
Which version of Firebird do you use? Do you load the client lib from the firebird installation directory? Usually the firebird.msg lies right next to the fbclient.dll? Please use the ZConnection.LibraryLocation property to specify the correct path.

Best regards,

Jan

Re: Trying to get actual error message with TZConnection for Firebird Database

Posted: 20.07.2018, 12:34
by Fr0sT
What's the sense of making two threads with identical question but differing subjects? I replied to you in another thread.