SQL Server Administration - User/Login Admin

Revoke Login

Revoke a SQL Server Login. Note Microsoft states that this stored procedure will be deprecated and replaced by "Drop Login"

Syntax - SQL Server 2005/2008

sp_revokelogin [ @loginame= ] 'login'
GO

--returns 0=ok 1=failed

Example - SQL Server 2005/2008

sp_revokelogin 'SEASVR\ericm';
GO
 Collapse All    Expand All
Custom Search

SQL Server Information and Resources