I had a script run against one of my databases that attempted to drop a bunch of users. All the users that had the drop attempted against them were disabled and displayed the little red down arrow on their icon in Management Studio.
I was able to revive all of the normal users by issuing the “alter login myLogin enable” command. However, when I try to do that against the sys, guest or information_schema users, I get the “Cannot alter the login ‘myLogin‘, because it does not exist or you do not have permission. I’m logged in as a system administrator.
How do I enable these accounts?
The objects you have listed are Schemas and Database Users, not SQL Server Logins and hence why they are not found using the ALTER LOGIN statement.
To answer your second question, a Database User displayed graphically within the security folder of a given database will display a red down arrow when it does not have CONNECT permission granted on the database. This can be added using the following command:
again REVOKED with the following command: