Access Denied error occurs when testing resource credentials for SQL databases