Hi everyone.
I have a script that checks SQL servers for their backup dates. It works and outputs results as expected , but produces errrors. I have had a look and can't find the issue.
Invoke-Sqlcmd : Cannot open database "admin" requested by the login. The login failed.
Login failed for user 123\yyyyyy.
I have check the permissions on the database and the user is a sysadmin on the box that hosts the admin database.
What can I do to check out reason for error ?