sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: using stored procedures through DBI/DBD-Sybase
Date: Jan 25 2000 4:15PM
Adam Witney writes:
> However when i try to pass this through a perl script, then i just
> get the return value of the stored procedure passed back... which is
> 0 in this case. Is there a special way of trying to do this with
> DBI/DBD?
Reading the manual helps ;-)
In this case you have to realize that you are executing more than one
SQl statement, so you need to do this:
do {
while($d = $sth->fetch) {
... do something with the result ...
}
} while($sth->{syb_more_results});
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@peppler.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|