in reply to Re: How can I catch a Server message displayed in Sybase::CTlib module
in thread How can I catch a Server message displayed in Sybase::CTlib module

Actually the Examples section of Sybase::CTlib clearly shows how to set a callback trap for Server side errors.

-derby
  • Comment on Re^2: How can I catch a Server message displayed in Sybase::CTlib module

Replies are listed 'Best First'.
Re^3: How can I catch a Server message displayed in Sybase::CTlib module
by goutam_monk (Initiate) on May 06, 2009 at 13:00 UTC
    Derby, Thank you for the reply. I am very new to this DB modules of PERL. I have seen the examples link earlier. What I found out was, I can print the message code and message statements on standard error or console. But, what I need is to capture the entire message in a single string. I came to know that "CS_HAFAILOVER" variable will hold the Error code. Similarly, do we have any vatiable which holds the entire error message, because I need to print the error message in a Log file