Export (0) Print
Expand All

xp_revokelogin (Transact-SQL)

Revokes access from a Windows group or user to SQL Server.

Important note Important

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use DROP LOGIN instead.

Applies to: SQL Server (SQL Server 2008 through current version).

Topic link icon 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft