Stored Procedure using perl



I am trying to execute a stored procedure in Sybase database using perl
DBI and I am getting the following error message.


DBD::Sybase::st execute failed: Server message number=226 severity=16
state=1 line=49 server=xxxxxxx procedure=sp_get text=SELECT INTO
command not allowed within multi-statement transaction.
Server message number=208 severity=16 state=6 line=92 server=xxxxxxxx
1 procedure=sp_get text=#option not found. Specify owner.objectname or
use sp_help to check whether the object exists (sp_help may produce
lots of output).

$cmd = " exec sp_get '', '$my_secy_id', '', '','','', '', '','US'";
$cmd = "exec sp_get \@ticker='IBM-MD', \@filter='US'";
$cmd = "BEGIN exec sp_get \@ticker='IBM', \@filter='US' END";

my $sth_op = $d_dbh->prepare($cmd);
$sth_op->execute()

These are some of commands I tried. Any suggestions.

Thanks,
Amit Khandelwal

.



Relevant Pages

  • Re: dbi not installing
    ... ppm install DBI ... What, exactly, were the results of this command? ... This is line 3 of your file, but your error message is saying it tried ... Please copy and paste the real error message ...
    (perl.beginners)
  • Re: Display Problems
    ... If it shows up in the GUI, it is there, and must be present ... Or issue the command; ... > and got the error message file or folder not found. ... in the midst of the frustration, by all means, vent away. ...
    (alt.os.linux.suse)
  • Re: Display Problems
    ... If it shows up in the GUI, it is there, and must be present ... > get the error message that you, in fact, did get. ... > Or issue the command; ... > in the midst of the frustration, by all means, vent away. ...
    (alt.os.linux.suse)
  • RE: Run a Stored Procedure from Excel
    ... get a single line multiple command working from ... I changed all the Charto Charand found that I got an error message ... Dim cnnDW As ADODB.Connection ... Dim rsDW As ADODB.Recordset ...
    (microsoft.public.excel.programming)
  • Re: A form that could no longer be opened for modification
    ... You CANNOT get that error message from the USE command. ... file corruption should be the reason. ... I can of course get from backup and lost some works, ...
    (microsoft.public.fox.vfp.forms)