Created
June 4, 2018 17:25
-
-
Save mvillegascuellar/0d675060f00ffdcc3a5703b9bd0b3821 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select sp.permission_name, sp.class_desc, ep.name as [endpoint] | |
from sys.server_permissions sp | |
left join sys.database_mirroring_endpoints ep | |
on sp.major_id = ep.endpoint_id | |
where suser_name(SP.grantee_principal_id) = 'YOURDOMAIN\SQLServiceUser' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment