UFN_ADDRESS_NCOAFOOTNOTECODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

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

    return case @Description
        when '' then 0
        when 'M - Forwardable move' then 1
        when 'K - Moved, no forwarding address' then 2
        when 'G - PO box closed' then 3
        when 'F - Move to foreign address' then 4
        when 'S - Forwardable move, but secondary address cannot be verified' then 5
        when 'P - Change of address form filed, but new address not in USPS records' then 6
        when 'L - Temporary address has lapsed' then 7
        else -1
        end 

end