Revokes SQL Server access from a Windows NT - based group or user.
xp_revokelogin 'account_name'
where
You can revoke permission only on an account on which you have been explicitly granted permission through xp_grantlogin.
This example revokes SQL Server access from the SQL Server Administrator group.
xp_revokelogin 'SQL Server administrator'
Execute permission defaults to the system administrator and can be granted to other users.
xp_grantlogin | xp_logininfo |
xp_loginconfig |