in reply to Yet Another Stored Procedure Question
And in the SP, according to what it sounds like you're doing.my $sth->prepare("exec DBname..stored_proc_name ?,?"); $sth->execute($var1,'var2'); while ($sth->fetchrow_hashref){..... ... }
The last select statement will be returned to the calling Perl code. And simply running select @var=42 might not do it.. so I used the @var as .. moniker. I don't now, maybe I'm misreading your post and if I am, let me know! :)..spcode.. declare @var int select @var = 42 select @var as var_name_for_hash end ..endofsp..
|
|---|