UFN_ADDRESS_NCOADPVFOOTNOTECODE_GETID

Return

Return Type
tinyint

Parameters

Parameter Parameter Type Mode Description
@Description nvarchar(145) 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_NCOADPVFOOTNOTECODE_GETID(@Description nvarchar(145))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when '' then 0
        when 'AA - Input address matched to the ZIP + 4 file' then 1
        when 'A1 - Input address not matched to the ZIP + 4 file' then 2
        when 'BB - Input address matched to DPV (all components)' then 3
        when 'CC - Input address primary number matched to DPV but secondary number present but not valid' then 4
        when 'F1 - Military' then 5
        when 'G1 - General Delivery' then 6
        when 'N1 - Input address primary number matched to DPV but high-rise address missing secondary number' then 7
        when 'M1 - Input address primary number missing' then 8
        when 'M3 - Input address primary number invalid' then 9
        when 'NL - NCOALink move address cannot be DPV confirmed (occurs because the NCOAlink directories are updated more frequently than the DPV directories)' then 10
        when 'P1 - Input address missing PO, RR or HC box number' then 11
        when 'P3 - Input address is invalid PO, RR, or HC number' then 12
        when 'RR - Input address matched to CMRA' then 13
        when 'R1 - Input address matched to CMRA but secondary number not present' then 14
        when 'U1 - Unique' then 15
        else -1
        end 

end