| title | xp_revokelogin (Transact-SQL) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 06/10/2016 | ||
| ms.prod | sql | ||
| ms.prod_service | database-engine | ||
| ms.reviewer | |||
| ms.technology | system-objects | ||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | b3fa7678-dba4-4537-be94-5ae63ca11f81 | ||
| author | VanMSFT | ||
| ms.author | vanto |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]
Revokes access from a Windows group or user to [!INCLUDEssNoVersion].
Important
[!INCLUDEssNoteDepFutureAvoid] Use DROP LOGIN instead.
Transact-SQL Syntax Conventions
xp_revokelogin {[@loginame=] 'login'}
[ @loginame = ] 'login'
Is the name of the Windows user or group from which to revoke access. login must include the domain name, for example [ADVWKS\sylvester1]. login is sysname, with no default.
0 (success) or 1 (failure)
Use DROP LOGIN instead.
Requires ALTER ANY LOGIN permission on the server.
sp_denylogin (Transact-SQL)
sp_grantlogin (Transact-SQL)
sp_revokelogin (Transact-SQL)
System Stored Procedures (Transact-SQL)
General Extended Stored Procedures (Transact-SQL)
xp_loginconfig (Transact-SQL)
xp_logininfo (Transact-SQL)