I have read the archives about this error and did change from a prepare() to a do() but didn't seem to help. Here is the error I get: DBD::DB2::st fetchrow_array failed: [IBM][CLI Driver] CLI0125E Function sequence error. SQLSTATE=HY010 at ./db2_test.pl line 29. The line referencing the error is a while loop: while (my ($sub_account_id,$connection_id,$ip_min_str,$ip_min,$ip_max_str,$ip_max,$owner_id) = $sth->fetchrow_array) I'm running this script on a Linux box version 2.4.20-19.7smp, PERL v5.6.1, DBI v 1.37, DB2 server v 8.1.2. I have a trace file and code sample if you need it. Any suggestions?
