I have sa on a server. When I tried to disable a Windows account, I came acroos the following error.
Msg 15151, Level 16, State 1, Line 1
Cannot alter the login 'domainName\UserAccount', because it does not exist or you do not have permission.
I tried to use the script below:
ALTER LOGIN [domainName\UserAccount] DISABLE
I also tried to manually disable this account on GUI, but got the same eroor.
What might be the issue?
Any input will be greatly appreciated.