Translating:
 instead of do(), use prepare() and execute().  DBD::ODBC has examples for
this in the mytest directory and in t/20SqlServer.t ... they may even work
with little/no modification on DBD::ADO, however, in VERY many of them I'm
testing multiple result sets and the difficulties that go along with them.

Regards,

Jeff

>
>
> 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?
> >
>
>


Reply via email to