1: 2: 3: 4:
Seleccionar el object_name (major_id), * de sys.database_permissions a interno ensamblar sys.database_principals b en b.principal_id = a.grantee_principal_id donde object_name (major_id) = “yourspname”