My first assumption would be that since integrated security is used for the authentication, the AD user account, which is used for the connection, does not have sufficient access rights for the DB.
I would suggest to try to use the SQL server authentication method for the connection and to use the database server's SA account to test if the connection works with it. If yes, that would confirm that there was a problem with the DB accesses.