UFN_ACTION_ITEM_TOPICCODE_GETID

Return

Return Type
tinyint

Parameters

Parameter Parameter Type Mode Description
@Description nvarchar(15) IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  8/2/2010 7:06:25 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.7.1654.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_ACTION_ITEM_TOPICCODE_GETID(@Description nvarchar(15))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Abortion' then 0
        when 'Budget' then 1
        when 'Defense' then 2
        when 'Drugs' then 3
        when 'Education' then 4
        when 'Environment' then 5
        when 'Foreign Affairs' then 6
        when 'Health Care' then 7
        when 'Human Rights' then 8
        when 'Labor' then 9
        when 'Law/Judicial' then 10
        when 'Other' then 11
        when 'Taxes' then 12
        when 'Technology' then 13
        when 'Veterans' then 14
        when 'Welfare' then 15
        else -1
        end 

end