in reply to
Perl in IIS
It's been my experience that scripts in the web service portion of IIS are typically run as one of the IIS user accounts. You probably need to make sure the correct user account has the proper permissions to access your database. The links below might help you figure out what the user accounts are on your IIS server.