UFN_REGISTRANT_ISCANCELLED
Returns whether the registrant belongs to a canceled registration.
Return
| Return Type |
|---|
| bit |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @REGISTRANTID | uniqueidentifier | IN |
Definition
Copy
CREATE function dbo.UFN_REGISTRANT_ISCANCELLED
(
@REGISTRANTID uniqueidentifier = null
)
returns bit
with execute as caller
as begin
if exists (
select [REGISTRANT].[ID]
from dbo.[REGISTRANT]
where
[REGISTRANT].[ID] = @REGISTRANTID and
[REGISTRANT].[ISCANCELLED] = 1
)
return 1;
return 0;
end