Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2.53 KB

File metadata and controls

60 lines (47 loc) · 2.53 KB
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
xp_revokelogin
xp_revokelogin_TSQL
dev_langs
TSQL
helpviewer_keywords
xp_revokelogin
ms.assetid b3fa7678-dba4-4537-be94-5ae63ca11f81
author VanMSFT
ms.author vanto

xp_revokelogin (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]

Revokes access from a Windows group or user to [!INCLUDEssNoVersion].

Important

[!INCLUDEssNoteDepFutureAvoid] Use DROP LOGIN instead.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
xp_revokelogin {[@loginame=] 'login'}  

Arguments

[ @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.

Return Code Values

0 (success) or 1 (failure)

Remarks

Use DROP LOGIN instead.

Permissions

Requires ALTER ANY LOGIN permission on the server.

See Also

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)