Security Part : (Server Level Permission)

Get list of built-in securable classes

SELECT * FROM fn_builtin_permissions(default)
image
use master 
go 
select * from fn_my_permissions('test_replogin','USER')
go

image

use master
go
select * from sys.server_principals where name ='test_replogin' select * from sys.server_permissions where grantee_principal_id=270
go
SELECT pr.principal_id, pr.name, pr.type_desc, pe.state_desc, pe.permission_name
FROM sys.server_principals AS pr
JOIN sys.server_permissions AS pe ON pe.grantee_principal_id = pr.principal_id where pr.name='test_replogin'

image

Leave a Reply

Your email address will not be published. Required fields are marked *