UFN_FACULTYSECURITYSTUDENTACCESS_POSITIONUNIQUE
Returns true if position is not yet defined for faculty security.
Return
Return Type |
---|
bit |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | |
@POSITIONCODE | tinyint | IN |
Definition
Copy
create function dbo.UFN_FACULTYSECURITYSTUDENTACCESS_POSITIONUNIQUE(
@ID uniqueidentifier,
@POSITIONCODE tinyint
)
returns bit
with execute as caller
as begin
if exists(select 1
from dbo.FACULTYSECURITYSTUDENTACCESS
where POSITIONCODE = @POSITIONCODE
and ID <> @ID)
return 0;
return 1;
end