in reply to DBI error

$sth = $dbh->prepare("$sql") or die $dbh->errstr; $sth->execute() or die $dbh->errstr; I would double check your $sql... or possibly do multiple inserts rat +her than using the range operator within the sql plus it would make t +he code more platform independent.