in reply to Execute stored procedure with freetd

Don't know if this will help you or not, but afaik, a stored proc is called with an exec statement. I would do it like so --
$action = $dbh->prepare("EXEC IBW_WebAuth $reg_num,$passwd") ; $action->execute; $rows = $action->rows ; $action->finish; print "rows is $rows\n";
Other than that, others' notes above about -1 might also be helpful.