Question : how many app roles in each DB

is there a query that can help to find out all the app roles defined in the server?

thanks

Answer : how many app roles in each DB

This should help:

select *
from sys.database_principals
where type = 'A' -- A for application role, D for database role
Random Solutions  
 
programming4us programming4us