$DSN = 'DBI:ODBC:SearchWords'; $USER= ''; $PASS= 'password'; $DBH = DBI->connect( $DSN, $USER, $PASS, { RaiseError => 1} ); my $SQL = "DELETE FROM [Production Words] WHERE areaId=ofn01506"; my $sth = $DBH->prepare($SQL); $sth->execute || die "Could not execute SQL statement ... maybe invalid?\n$!"; $sth->finish; $DBH->disconnect();