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

How to Drop a User from the master db

Status
Not open for further replies.

syscare

MIS
Apr 25, 2001
18
GB
have a problem adding a new user to an sql database; enterprise manager says the user already exists, although i cannot see the user in any area unless i go to properties....

i understand this is a known issue with sql7, where the master db gets out of sync; can anyone tell me what the stored procedure is that needs using to drop this user?

thanks

jc
 
Do you really want to add new user or login ?
If user try to list all users for specific database by sp_helpuser ... and if some needed user exists try to remove it by sp_dropuser.
 
I have just added a FAQ about this issue. Please review the FAQ. If you still have questions about this, let me know.

faq183-2153: "Why can't I CREATE or DROP a USER in a database restored from another server?"
Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top