Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] how to make print statements of a stored procedure displayed in perl/dbi program
  • Date: Sun, 24 Jul 2011 07:32:46 +0200

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










Archive powered by MHonArc 2.6.24.

Top of Page