Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Revokes access from a Windows group or user to SQL Server.
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.
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\smacrae]. 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
Reference
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)