martymart has asked for the wisdom of the Perl Monks concerning the following question:
I can get this thing to work by changing the stored proecdure so that it doesn't return a value, but I'm gonna have to get this working for loads of stored procedures, so this really isn't an option. I realise that this is probably a problem with the syntax I'm using. Any advice (or sample working code) would be greatly appreciated.my $sth = $dbh->prepare("exec spSubComponentADD \@SubComponentName = ? +, \@SubComponentDescription = ?, \@SubComponentID = ? OUTPUT "); $sth->execute($subcomponentname, $subcomponentdescription) or handle_error ("Can't execute SQL" . $sth->errstr(), $dbh, $ +sth); my (@data) = $sth->func('syb_output_params');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD::Sybase stored procedure question
by mpeppler (Vicar) on Sep 10, 2004 at 14:44 UTC | |
by martymart (Deacon) on Sep 10, 2004 at 15:00 UTC | |
by mpeppler (Vicar) on Sep 10, 2004 at 15:08 UTC | |
|
Re: DBD::Sybase stored procedure question
by ccn (Vicar) on Sep 10, 2004 at 13:52 UTC |