in reply to Problem Inserting into Sql Server Database

You're making a string instead of invoking the method. Just take the quotes off: print $dbh->errstr;