Last active
March 15, 2020 04:45
-
-
Save phaniav/8a5c7473ad4496f3997f241defb16f9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select princ.name | |
, princ.type_desc | |
, perm.permission_name | |
, perm.state_desc | |
, perm.class_desc | |
, object_name(perm.major_id) | |
from sys.database_principals princ | |
left join | |
sys.database_permissions perm | |
on perm.grantee_principal_id = princ.principal_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment