Can't delete login
From: Shaun Stuart (sstuartA-TproNsOoSfPtAtMrainingD-O-Tcom)
Date: 12/30/02
- Next message: Kalen Delaney: "Re: Disabling or renaming the sa account"
- Previous message: Jasper Smith: "Re: Linked SQL Servers"
- Next in thread: Shaun Stuart: "Re: Can't delete login"
- Reply: Shaun Stuart: "Re: Can't delete login"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Shaun Stuart" <sstuartA-TproNsOoSfPtAtMrainingD-O-Tcom> Date: Mon, 30 Dec 2002 09:23:14 -0700
I'm trying to delete an old login and SQL refuses to let me. It returns the
following error:
Error 15174" Login 'mcho' is aliased or mapped to a user in one or more
database(s). Drop the user or alias before dropping the login. Database
name: Corporate, Europe.
If I go to the Corporate or Europe databases in Enterprise Manager, the user
list does not include this user.
Using Query Analyzer, I get the following in both the Corporate and Europe
databases:
sp_helplogins 'mcho'
LoginName SID
DefDBName DefLangName AUser ARemote
--------- ------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------ --------- -------------------- ----- -------
mcho 0x774D71CF7DEED411A87200D0B79E955A
pubs us_english yes no
(1 row(s) affected)
LoginName DBName UserName UserOrAlias
--------- ------------------ ---------- -----------
mcho Corporate \mcho User
mcho Europe \mcho User
(2 row(s) affected)
sp_helpuser 'mcho'
Server: Msg 15198, Level 16, State 1, Procedure sp_helpuser, Line 189
The name supplied (mcho) is not a user, role, or aliased login.
sp_helpuser '\mcho'
Server: Msg 15198, Level 16, State 1, Procedure sp_helpuser, Line 189
The name supplied (\mcho) is not a user, role, or aliased login.
sp_dropuser 'mcho'
Server: Msg 15008, Level 16, State 1, Procedure sp_dropuser, Line 12
User 'mcho' does not exist in the current database.
sp_dropuser '\mcho'
Server: Msg 15008, Level 16, State 1, Procedure sp_revokedbaccess, Line 31
User '\mcho' does not exist in the current database.
Any ideas? I'm running SQL Server 7.0 SP4 + hotfixes (Microsoft SQL Server
7.00 - 7.00.1077 (Intel X86))
Shaun
- Next message: Kalen Delaney: "Re: Disabling or renaming the sa account"
- Previous message: Jasper Smith: "Re: Linked SQL Servers"
- Next in thread: Shaun Stuart: "Re: Can't delete login"
- Reply: Shaun Stuart: "Re: Can't delete login"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|