Page 1 of 1

Information on error on TIBCScrpit/TIBCQuery

Posted: Fri 11 Mar 2011 14:48
by calou
Hello,

How to get information from a TIBCScript or a TIBCQuery when it makes exceptions(bad SQL), not just the error message, but the other information such as table name and primary key value?

Thanks for help

Regards

Posted: Mon 14 Mar 2011 10:54
by AndreyZ
Hello,

Such errors are server-side and IBDAC returns them in the error message. Therefore you can find this information only in the error message. You can use the Message, ErrorCode, ErrorNumber, and SQLErrorMsg properties of the EIBCError class to get more information about the error you've got. For more information about the EIBCError class, please read the IBDAC documentation.