UFN_SPONSORSHIPLOCATION_ISACTIVE
Returns 1 if the specified sponsorship location is active.
Return
Return Type |
---|
bit |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_SPONSORSHIPLOCATION_ISACTIVE(
@ID uniqueidentifier
)
returns bit
with execute as caller
as begin
declare @STATUSCODE tinyint
select @STATUSCODE = STATUSCODE
from dbo.SPONSORSHIPLOCATION
where ID = @ID
if @STATUSCODE = 0
return 1;
return 0;
end