UFN_CONSTITUENT_ISINACTIVE

Returns whether a constituent is active or not.

Return

Return Type
bit

Parameters

Parameter Parameter Type Mode Description
@CONSTITUENTID uniqueidentifier IN

Definition

Copy


            CREATE function dbo.UFN_CONSTITUENT_ISINACTIVE
            (
                @CONSTITUENTID uniqueidentifier
            )
            returns bit
            with execute as caller
            as begin
                declare @ISINACTIVE bit

                select
                    @ISINACTIVE = ISINACTIVE
                from dbo.CONSTITUENT
                where ID = @CONSTITUENTID

                return @ISINACTIVE
            end