UFN_BBNC_TRIGGERSENABLED

Returns the enabled status of Blackbaud Internet Solutions mapping table triggers.

Return

Return Type
bit

Definition

Copy


            CREATE function dbo.UFN_BBNC_TRIGGERSENABLED ()
            returns bit
            as begin
                return (
                    select top 1 
                        case when IS_DISABLED = 0 then 1 else 0 end as ENABLED
                    from 
                        sys.triggers
                    where 
                        [NAME] like 'TR_%BBNC%IDMAP'
                    order by
                        [IS_DISABLED] desc
                    )
            end