UFN_VSECONSTITUENCY_VSECONSTITUENCYCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(31) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 12/17/2008 2:36:39 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_VSECONSTITUENCY_VSECONSTITUENCYCODE_GETID(@Description nvarchar(31))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'Alumni' then 0
when 'Parents' then 4
when 'Current Parents' then 5
when 'Past Parents' then 6
when 'Grandparents' then 7
when 'Faculty and Staff' then 8
when 'Students' then 9
when 'Direct Governing Board' then 10
when 'Other Individuals' then 11
when 'Foundations-Personal and Family' then 12
when 'Foundations-Other' then 13
when 'Corporations' then 14
when 'Religious Organizations' then 15
when 'Fundraising Consortia' then 16
when 'Other Organizations' then 17
else -1
end
end