UFN_VSECONSTITUENCY_VSECONSTITUENCYCODE_GETDESCRIPTION

Return

Return Type
nvarchar(31)

Parameters

Parameter Parameter Type Mode Description
@ID tinyint IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  12/17/2008 2:36:39 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_VSECONSTITUENCY_VSECONSTITUENCYCODE_GETDESCRIPTION(@ID tinyint)
RETURNS nvarchar(31) WITH EXECUTE AS CALLER
AS
begin

    return case @ID
        when 0 then 'Alumni'
        when 4 then 'Parents'
        when 5 then 'Current Parents'
        when 6 then 'Past Parents'
        when 7 then 'Grandparents'
        when 8 then 'Faculty and Staff'
        when 9 then 'Students'
        when 10 then 'Direct Governing Board'
        when 11 then 'Other Individuals'
        when 12 then 'Foundations-Personal and Family'
        when 13 then 'Foundations-Other'
        when 14 then 'Corporations'
        when 15 then 'Religious Organizations'
        when 16 then 'Fundraising Consortia'
        when 17 then 'Other Organizations'    
    end

end