Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Script works but reports errors - do I need to be concerned?

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 10624

Trending Articles