UFN_MKTCREATIVE_COSTDISTRIBUTIONMETHODCODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  8/17/2011 2:19:39 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.91.1535.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_MKTCREATIVE_COSTDISTRIBUTIONMETHODCODE_GETID(@Description nvarchar(39))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Per piece' then 0
        when 'Per response' then 1
        when 'Per marketing effort' then 2
        when 'Per thousand' then 4
        when 'Do not include in marketing effort cost' then 3
        else -1
        end 

end