Re: how to make print statements of a stored procedure displayed in perl/dbi program

Michael Peppler <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Jul 24, 2011, at 1:39 AM, Ravi Krishna wrote:

> 
> Is there a way to print any print statements inside a sproc displayed back in the perl program.

Yes - look at setting up an error handler. In DBD::Sybase, that's the syb_err_handler connection attribute. 
See http://search.cpan.org/~mewp/DBD-Sybase-1.10/Sybase.pm#Database_Handle_Attributes for an example.

Michael
--
Michael Peppler
Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html

"A successful [software] tool is one that was used to do something undreamed of by its author." -- S. C. Johnson
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.