UFN_COUNTRYVALIDATIONINFO_VALIDATIONCOUNTRYCODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  1/27/2010 6:48:26 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.5.465.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_COUNTRYVALIDATIONINFO_VALIDATIONCOUNTRYCODE_GETID(@Description nvarchar(14))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when '' then 0
        when 'Australia' then 1
        when 'Canada' then 2
        when 'United Kingdom' then 3
        when 'United States' then 4
        when 'New Zealand' then 5
        else -1
        end 

end