UFN_ADDRESSVALIDATIONUPDATE_NCOAMAILGRADECODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

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

    return case @Description
        when '' then 0
        when 'A - This is an accurate, mail-able address' then 1
        when 'B - Record is probably deliverable' then 2
        when 'C - The record may or may not be deliverable' then 3
        when 'F - The record is undeliverable. Do not mail' then 4
        else -1
        end 

end