UFN_MEMBERSHIPPROGRAM_CATEGORYCODE_GETDESCRIPTION

Return

Return Type
nvarchar(27)

Parameters

Parameter Parameter Type Mode Description
@ID tinyint IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  3/19/2013 1:11:27 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=3.0.504.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_MEMBERSHIPPROGRAM_CATEGORYCODE_GETDESCRIPTION(@ID tinyint)
RETURNS nvarchar(27) WITH EXECUTE AS CALLER
AS
begin

    return case @ID
        when 0 then 'Alumni Association'
        when 1 then 'Museum'
        when 2 then 'Zoo/Aquarium'
        when 3 then 'Public Radio'
        when 4 then 'Nature/Environmental'
        when 5 then 'Arboretum/Botanical Gardens'
        when 6 then 'Political'
        when 7 then 'Library'
        when 8 then 'Lobbying'
        when 9 then 'None'    
    end

end