I'd like to get extended properties for database's roles. I can get a list of all extended properties for users with this command:
use db;
SELECT * FROM fn_listextendedproperty (null, 'user', null, default, default, default, default)
But I'm not able to find correct level types for roles.
With using following command I can see that roles' class
is 4 and their major id
is 10.
SELECT * FROM sys.extended_properties
So I can get what I'm looking for with the below command:
SELECT * FROM sys.extended_properties WHERE class = 4 AND major_id = 10
But I prefer to get the list with fn_listextendedproperty
function.