xp_revokelogin (Transact-SQL)
Applies to: SQL Server
Revokes access from a Windows group or user to SQL Server.
Important
This feature will be removed in a future version of 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'
The name of the Windows user or group from which to revoke access. @loginame must include the domain name, for example [CONTOSO\sylvester1]
. @loginame 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.
Related content
प्रतिक्रिया
https://aka.ms/ContentUserFeedback.
जल्द आ रहा है: 2024 के दौरान हम सामग्री के लिए फीडबैक तंत्र के रूप में GitHub मुद्दों को चरणबद्ध तरीके से समाप्त कर देंगे और इसे एक नई फीडबैक प्रणाली से बदल देंगे. अधिक जानकारी के लिए, देखें:के लिए प्रतिक्रिया सबमिट करें और देखें