Re: Drop User Command
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 04/09/04
- Next message: Rachan Terrell: "Best Way to Update Table?"
- Previous message: Hugo Kornelis: "Re: Delete higher price record, if there is one."
- In reply to: Brady Snow: "Drop User Command"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 9 Apr 2004 17:00:52 +0530
Hi,
In SQL Server you will be having Login and Users.
Login : Login to authenticate inside SQL server when you use SQL server
authnetication
User: Who got previlege to access the databases
So before deleting the Login you have to drop the user
Command to drop user:
sp_dropuser <user_name>
Command to drop Login
sp_droplogin <login_name>
Apart from this refere the below commands in books online:
1. sp_revokelogin <Loginame>
2.sp_revokedbaccess <user_name>
Thanks
Hari
MCDBA
"Brady Snow" <anonymous@discussions.microsoft.com> wrote in message
news:1905501c41bee$fd37b770$a401280a@phx.gbl...
> What is the stored procedure for drop a user? Drop_user
> userx...
>
> Thanks,
>
> Brady Snow
> McKinney, Texas
- Next message: Rachan Terrell: "Best Way to Update Table?"
- Previous message: Hugo Kornelis: "Re: Delete higher price record, if there is one."
- In reply to: Brady Snow: "Drop User Command"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|