Microsoft Knowledge Base Article - Q194792 RETURN values in a stored procedure must be associated with at least one resultset.
On Tue, 10 Sep 2002 12:37:09 -0400, [EMAIL PROTECTED] (Joel Gwynn) wrote: >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? >
