UFN_PROSPECTSEARCH_SORTBYCODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  3/19/2013 1:11:27 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=3.0.504.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_PROSPECTSEARCH_SORTBYCODE_GETID(@Description nvarchar(21))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Full name' then 1
        when 'Last name, First name' then 2
        when 'Wealth ascending' then 3
        when 'Wealth descending' then 4
        when 'City, State' then 5
        else -1
        end 

end