Re: How to disconnect a user from SQL Server 2000
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Mon, 16 Jul 2007 22:37:53 +0000 (UTC)
KFX (KFX@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
First of all thanks for your reply...
You have understood well. The problem is that when I found the user and
use the KILL command, although the spid is removed from the list, if the
user runs again a query the user connects again and so there is no kill
at all... Is there a way to permantly deny the connection of a user to
the server?
sp_droplogin, if it is an SQL login.
sp_revokelogin, if it is a Windows login that has been granted DB access in
his own name.
sp_denylogin, it it is a Windows login that gets his access through
membership in a Windows group.
See Books Online for the exact details.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Re: How to disconnect a user from SQL Server 2000
- From: Uri Dimant
- Re: How to disconnect a user from SQL Server 2000
- Prev by Date: Re: How to disconnect a user from SQL Server 2000
- Next by Date: Re: SQLServer2005MSSQLUser - Using Sledgehammer to crack a peanut?
- Previous by thread: Re: How to disconnect a user from SQL Server 2000
- Next by thread: Re: SQLServer2005MSSQLUser - Using Sledgehammer to crack a peanut?
- Index(es):
Relevant Pages
|