Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

removing a logon/user from a server & all databases

Status
Not open for further replies.

smsinger3

Programmer
Joined
Oct 5, 2000
Messages
192
Location
US
Hello all. I am trying to completely remove someone from sql server, then add him back through EM. I can remove both the logon and user from EM, but when I try to add him back it says the "User or Role already exists in the current database". So, I then ran

exec sp_droprolemember 'rol_name', 'user_id'

This works for everything except the "public" role. How can I remove this person from the database so I can add him back?

Thanks for your help in advance.

Steve S
sms@hmbnet.com
 
On SQL 7 and 2k You can use sp_RevokeDbAccess that should take care of it AL Almeida
NT/DB Admin
"May all those that come behind us, find us faithfull"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top