in reply to Error in my MS SQL script

You don't do a $query_handle->commit() or die $query_handle->errstr; after executing the query. As previously suggested it's worth while reading and understanding the DBI documentation, including the AutoCommit attribute and the commit method.

Martin