Re: Minimum Permissions for sp_adduser
- From: "Russell Fields" <russellfields@xxxxxxxxxx>
- Date: Mon, 29 Dec 2008 09:10:25 -0500
Uri,
Yes he did say he was db_owner, per my first suggestion.
But it turns out that being a member of db_owner is not enough, even though it should be, because it does not map a login to the "dbo" user. (That mapping is reserved for the owner of the database (the SID in sysdatabases) and for 'sa' or other sysadmins.)
The sp_adduser procedure is hardcoded, not for the rights you actually have, but for whether or not you are the "dbo" user.
RLF
"Uri Dimant" <urid@xxxxxxxxxxx> wrote in message news:uegGc1LaJHA.4852@xxxxxxxxxxxxxxxxxxxxxxx
No, he isn't. Also the OP said that the user was already member of db_owner database role
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message news:Xns9B8077C38C6E8Yazorman@xxxxxxxxxxxxUri Dimant (urid@xxxxxxxxxxx) writes:Hi Tom
But the OP is using SQL Server 2000
I suggested to him adding the user into securityadmin server role and try
it again, what do you think?
Oops! But didn't he say SQL 2005 in his first post?
Anyway, I think Russell has already sorted this out with help of
sp_helptext: sp_adduser requires that you are dbo, period. But the
newer sp_grantdbaccess, being a member of db_accessadmin is sufficient.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Minimum Permissions for sp_adduser
- From: Munish Narula
- Re: Minimum Permissions for sp_adduser
- From: Russell Fields
- Re: Minimum Permissions for sp_adduser
- From: Munish Narula
- Re: Minimum Permissions for sp_adduser
- From: Tom Moreau
- Re: Minimum Permissions for sp_adduser
- From: Uri Dimant
- Re: Minimum Permissions for sp_adduser
- From: Erland Sommarskog
- Re: Minimum Permissions for sp_adduser
- From: Uri Dimant
- Minimum Permissions for sp_adduser
- Prev by Date: Re: Minimum Permissions for sp_adduser
- Next by Date: Re: using Source Code Analyzer for SQL Injection
- Previous by thread: Re: Minimum Permissions for sp_adduser
- Next by thread: Re: Minimum Permissions for sp_adduser
- Index(es):
Relevant Pages
|