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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |