$InsertIntoMetar = <prepare($InsertIntoMetar) or die "Can't prepare $InsertIntoMetar: $dbh->errstr\n"; $rv = $sth->execute ##Insert into production Metar table. or die "can't execute the query: $sth->errstr"; #### can't execute the query: DBI:: st=HASH(0x1a07924)-> errstr at Load_Metar_New1.pl line 600. Line 600 is the line that contains the $rv = $sth->execute shown above.