Link to home
Start Free TrialLog in
Avatar of anushahanna
anushahannaFlag for United States of America

asked on

DB level permissions

are these 2 talking about the same permissions?

sp_dbfixedrolepermission -- brings back 105 records
SELECT * FROM fn_my_permissions (NULL, 'DATABASE') -- brings back 61 records
ASKER CERTIFIED SOLUTION
Avatar of DBAduck - Ben Miller
DBAduck - Ben Miller
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of anushahanna

ASKER

so if a sysadmin runs it, should he/she get 105 rows back for the second query?
No, because it will just show what he/she has permissions on and does not correspond to the db fixed roles.  So the results will vary.
OK.

doesn't a sysadmin 'implicitly' have permission on 'all' that is possible in SQL Server?
Yes, that is correct.  There is nothing that a sysadmin cannot do on a SQL Server.
OK. but sorry, I am not getting it, in that reason, should not the sysadmin have all the 105 permissions mentioned in dbfixedrolepermission sp?

thanks dbaduck