Hi all,
i get the error in object when try to launch a powershell script that remove from AG some db.
Configuration is following:
- 1 domain user added as administrator locally on both 2 node;
- powershell script is invoked by jenkins scheduler. Domain user is stored on jenkins scheduler;
- on both sql server domain user is sysadmin.
So script work fine on primary node, remove db from ag and after delete it. When i try to launch script from primary node to secondary doesn't work, i got error in attach with "login failed for NT AUTHORITY\ANONYMOUS LOGON".
user and password for security are not hardcoded into the script. Into the script there is integrated security = true. We tried with integrated security = SSPI but got same error. If we put integrated security = false it works on secondary node.
What are doing wrong?
Thanks