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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropping user

Status
Not open for further replies.

Parasu

Technical User
Mar 11, 2001
38
PH
Hi all,
I'm unable to drop a user. I used
exec sp_dropuser 'user1'
It says that the user doesnt exist in the database.
In the EM, i checked for the user in the Security - Logins. His name is there, but he hasnt been assigned any database. But, his default database is master.
So, i checked in the sysusers of the master, but, his username is not there.
How to knock off this guy?

Thanx
Parasuraman Parasuraman
 
Hi Parasuraman,

in SQL user and login means different.
I think u had created a login name.
And to drop it use
sp_droplogin myLoginToDrop
give the login name without quotes i.e. if login name is james then issue the command :
sp_droplogin james




 
Hi rajeev,
Thanx alot. I'll try that. Does this login been created in the NT? What is the difference between the two.
Thanx again
Parasu
Parasuraman
 

Check SQL BOL for explanation of login and user.

Basically, the login provides access to the server and each login can be granted access to databases as a user. NT logins can be granted access to SQL Server (NT Authentication). Or you can create separate SQL Server logins (SQL Authentication).
Terry Broadbent
Please review faq183-874.

"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top