(1): 2: 3: 4:
Wybierać object_name (major_id), * od sys.database_permissions a wewnętrzny łączyć sys.database_principals B na b.principal_id = a.grantee_principal_id dokąd object_name (major_id) = "yourspname"