тупняк ловлю
дропаю роль БД, люблю ошибку
The database principal owns a schema in the database, and cannot be dropped.
делаю запрос
select [name]
from sys.database_principals
where principal_id in (
select member_principal_id
from sys.database_role_members
where role_principal_id in (
select principal_id
FROM sys.database_principals where [name] =
@RoleName AND type = 'R'))
получаю пустую выборку