Re: User can't be deleted because it has granted/denied permissions on objects
- From: "Russell Fields" <russellfields@xxxxxxxxxx>
- Date: Thu, 9 Aug 2007 15:25:22 -0400
Tim,
This is documented in the Books Online (the SQL Server developer's best
friend). Here is a snippet:
sp_helprotect [ [ @name = ] 'object_statement' ]
[ , [ @username = ] 'security_account' ]
[ , [ @grantorname = ] 'grantor' ]
[ , [ @permissionarea = ] 'type' ]
So, use the appropriate parameter for your need. Sorry, but I (blush)
misread the topic.
sp_helprotect @grantorname ='yourusername'
RLF
"Tim Greenwood" <tim_greenwood AT yahoo DOT com> wrote in message
news:ueIzFmr2HHA.212@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the reply!!
This is showing me all the entries where the user in question is the
grantee....not the grantor. How can I see everything where it is the
grantor?
"Russell Fields" <russellfields@xxxxxxxxxx> wrote in message
news:OXZN6Qr2HHA.4720@xxxxxxxxxxxxxxxxxxxxxxx
Tim,
sp_helprotect @username='yourusername'
This should show you all grants and denies for the user.
RLF
"Tim Greenwood" <tim_greenwood AT yahoo DOT com> wrote in message
news:e3LeW9p2HHA.4720@xxxxxxxxxxxxxxxxxxxxxxx
How to determine what it has granted/denied? I've been tasked with
restoring a 3rd parties database and we're cleaning up some things
including
the plethora of sql login/users and going to all domain based groups. I
cannot delete this one user. I've transferred all objects owned by it
to
another user but still get this message.
I'm stuck..
Thanks for any insight here!
.
- References:
- User can't be deleted because it has granted/denied permissions on objects
- From: Tim Greenwood
- Re: User can't be deleted because it has granted/denied permissions on objects
- From: Russell Fields
- Re: User can't be deleted because it has granted/denied permissions on objects
- From: Tim Greenwood
- User can't be deleted because it has granted/denied permissions on objects
- Prev by Date: Re: Create table in schema
- Next by Date: Re: Create table in schema
- Previous by thread: Re: User can't be deleted because it has granted/denied permissions on objects
- Next by thread: Determining windows grouop membership of a SQL login
- Index(es):
Relevant Pages
|
|