UFN_REGISTRANTBATCH_REGISTRANTROLECODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  11/30/2010 11:36:01 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.8.2022.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_REGISTRANTBATCH_REGISTRANTROLECODE_GETID(@Description nvarchar(37))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Start a company' then 0
        when 'Start a team under a company' then 1
        when 'Start an independent team' then 2
        when 'Join a team' then 3
        when 'Start a household under a company' then 4
        when 'Start a household under a team' then 5
        when 'Start an independent household' then 6
        when 'Join as an individual under a company' then 7
        when 'Join as individual participant' then 8
        when 'Join a household' then 9
        else -1
        end 

end