in reply to
DBD::Sybase query execute hangs randomly for Sybase IQ 15.4
Set the timeout connection option so you aren't waiting forever.
$dsn = "dbi:Sybase:serverType=IQ:loginTimeout=240:timeout=180:server=$
my $dbh = DBI->connect($dsn,
my $sqlA =<< "END_SQLA";
WHERE table_name like ?
AND length(table_name) = ?
AND user_name(creator) = ?
my $sthA = $dbh->prepare($sqlA);
$sthA->execute($uc_table_name . '%', $table_name_len, $uc_schema);
DBD::Sybase works fine with IQ. That being said, connections to IQ work differently than other database systems. If you have 100 allowable connections, you may have 40 connections that can do work at a time. The other 60 will appear to hang from the application perspective. If you're running into this feature, it will also occur using dbisql or isql.