Have you managed to resolve this issue yet? If not, the error message complains about connecting to database. Make sure the credentials you are using have correct security rights.
check the sql users list… The aos account user is exist in your db or not…if exist please reset the password…and the aos account is having the system user and db owner rides…