Sorry if this is too much of an rtfm question but here goes anyway.

I'm connecting to SQL Server using DBI::ADO, and I'm calling a T-SQL
stored procedure, and I need to know what the stored procedure did.
Here's what I'm using as a test:

Alter Procedure simpletest
As
declare @problem integer
/* Some stuff here */
if @problem=1
        begin
        return 1
        end
else
        begin
        return 0
        end

And here's the relevant perl:

$sql = "simpletest";
my $result = $dbh->do($sql);
print $result;

So, $result isn't getting assigned to anything, but the procedure seems
to be executing ok.  How do I make this work?


Reply via email to