Hello Monks and thank you for taking the time to read my questino and provide a little insight.

I have a very simplistic program that I am using to connect to a somewhat unknown database sytem called Rbase. They have been kind enough to proovide an ODBC connector for their system (called Ottero) so I have been attempting to use it with the DBI module to begin gleaning some basic info out of the tables.

I have used this same code, modified for Mysql connectivity and it works a treat, but when I use it to connect via the ottero ODBC driver, I receive "result too large" errors at a command prompt level run (although it does complete and supplis the table data), and the CGI interface simply dies completley at the connect() command and I either get a 500 error from the browser, no response at all. I have even placed 'trace' print commands at each line to see where it dies... it's at the connect() line.

Here is my simple code:

#!c:\perl\bin\perl.exe $|++; #sets $| for STDOUT use CGI qw(-debug); print "Content-type: text/plain\n\n"; use DBI; $dbase = "DBI:ODBC:rbase"; #Current Databa +se being used $dbh ||= DBI->connect($dbase); $dataObject = $dbh->prepare("SELECT * FROM product")or die "Can' +t prepare to verify parts $DBI::errstr"; $dataObject->execute()or print "Can't execute to verify parts $DBI +::errstr"; while (@tname = ($dataObject->fetchrow_array)) { print "@tname"; }

As you can see, this basic program is in no state to be made public, but in this simplest form, if should connect without issue.

again, thank you for your help in advance.


In reply to Result too large using DBI::ODBC by vshortt

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.