UFN_DATAFORMINSTANCE_GETSYSTEMROLETASKASSIGNMENTSLIST
Returns a table of IDs for all system roles that have been assigned the given TASKID
Return
Return Type |
---|
table |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@TASKID | uniqueidentifier | IN |
Definition
Copy
CREATE FUNCTION dbo.UFN_DATAFORMINSTANCE_GETSYSTEMROLETASKASSIGNMENTSLIST(@TASKID uniqueidentifier)
/*
Returns a table of IDs for all system roles that have been assigned the given TASKID
*/
returns table
as
return
(
select
SRT.ID, SR.NAME, SRT.SYSTEMROLEID, cast(1 as bit) as GRANTORDENY, DISPLAYONHOMEPAGE
from
dbo.SYSTEMROLE as SR left outer join dbo.SYSTEMROLETASK as SRT on SR.ID = SRT.SYSTEMROLEID
where
SRT.TASKID = @TASKID
)