Re: SQL 2005 ALTER ANY LOGIN trouble
- From: "Ol Boldyrev" <olboldie@xxxxxxxxx>
- Date: Fri, 12 Jan 2007 17:29:36 +0300
Thank you, Erland, for your response!
That was my blunder indeed. Using 'as user' instead of 'as login'. (one
would expect an exception though, something about a missing user..)
It works OK with domain accounts, too.
Oleg
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns98B63A1E1674Yazorman@xxxxxxxxxxxx
Ol Boldyrev (olboldie@xxxxxxxxx) writes:
That's what I'm doing:
1.
grant alter ANY login to [Domain\User]
which executes successfully. Then strange things begin to happen, .
And you were in master when you did this?
Was Domain\User added explicitly as login prior to this, or did it
have implicit access through a group?
For what it's worth, I was successful with this:
create login alteranylogin with password='cccccc'
grant alter any login to alteranylogin
execute as login = 'alteranylogin'
create login alteranylogin2 with password='cccccc'
revert
But this was an SQL login. Running on my home machine, it is somewhat
difficult to test with domain users.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: SQL 2005 ALTER ANY LOGIN trouble
- From: Laurentiu Cristofor [MSFT]
- Re: SQL 2005 ALTER ANY LOGIN trouble
- References:
- SQL 2005 ALTER ANY LOGIN trouble
- From: Ol Boldyrev
- Re: SQL 2005 ALTER ANY LOGIN trouble
- From: Erland Sommarskog
- SQL 2005 ALTER ANY LOGIN trouble
- Prev by Date: Error 15401 windows NT user or group not found+sql 2000
- Next by Date: Re: SQL 2005 ALTER ANY LOGIN trouble
- Previous by thread: Re: SQL 2005 ALTER ANY LOGIN trouble
- Next by thread: Re: SQL 2005 ALTER ANY LOGIN trouble
- Index(es):
Relevant Pages
|