Viewing 5 posts - 1 through 5 (of 5 total)
and
select *, object_name(major_id) from sys.database_permissions where grantor_principal_id = user_id ('the_user')
returned NULL for object_name(major_id)
December 9, 2013 at 2:59 pm
thanks, but the user in question was not returned as an owner
I should also mention that the user is an orphan (that is, there is no associated login) - not...
December 9, 2013 at 2:58 pm
ok, I did
select user_name(grantor), object_name(id), *
from sysprotects (nolock)
where grantor = USER_ID ( 'the_user' )
but object_id(id) is null
any ideas on the next move?
thanks
December 9, 2013 at 1:38 pm
just found it... it's in sys.sql_logins
this script has it (along with a bunch of other stuff): http://www.sqlservercentral.com/scripts/31776/
thanks
W
April 6, 2009 at 11:46 am
Viewing 5 posts - 1 through 5 (of 5 total)