UFN_DATALIST_GETSYSTEMROLEPERMISSIONSLIST

Returns a table of IDs for all system roles that have permissions set for the given DATALISTCATALOGID

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@DATALISTCATALOGID uniqueidentifier IN

Definition

Copy


CREATE FUNCTION dbo.UFN_DATALIST_GETSYSTEMROLEPERMISSIONSLIST(@DATALISTCATALOGID uniqueidentifier)
/*
Returns a table of IDs for all of the system roles that have permissions set for the given DATALISTCATALOGID
*/
returns table
as
return 
(

select 
    SRP.ID, SR.NAME, SRP.SYSTEMROLEID, SRP.GRANTORDENY
from 
    dbo.SYSTEMROLE as SR left outer join dbo.SYSTEMROLEPERM_DATALIST as SRP on SR.ID = SRP.SYSTEMROLEID
where 
    SRP.DATALISTCATALOGID = @DATALISTCATALOGID

)