I have developed a perl program suite on Windows that talks to a Teradata over ODBC and works fine. I need to port it to DBD::Teradata on an AIX box, as ODBC is not installed. I have built a local perl (5.14) (cc_r is missing, so I had to compile a copy with gcc) and I have installed DBI ver 1.6.16 and DBD::Teradata version 12.001 (from Presicient)

I can execute a connect correctly. However, when I try and run a simple test program that executes a stored procedure, the $dbh->execute fails. I have searched a number of online resources, but as yet have no glimmer of a solution.

The core of the test program is:

$refStr = "call crchampsview.FD622_Determine_Date_Range_SP( '2011-04-0 +1' )"; $sth = $dbh->prepare($refStr); $sth->execute; $row = $sth->fetchrow_hashref; $sth->finish; print Dumper($row);

Called through DBD::ODBC the results are:

$VAR1 = { 'Beginning_Date' => '2011-03-27', 'Ending_Date' => '2011-04-02', '\'FD622\'' => 'FD622' };

But called through DBD::Teradata, the program fails as follows:

DBD::Teradata::st execute failed: Failure 7968: FD622_Determine_Date_Range_SP:The recipient of the result set does not support dynamic result sets. on Statement 0. at ./trPDateSPTest.pl line 61.

Explanations and/or work-arounds/corrections will be most gratefully received.


In reply to execute failure with DBD::Teradata, relating to 'Dynamic Result Sets' by jefftate

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.