UFN_MEMBERSHIPLEVELTERM_TERMCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(8) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 12/17/2008 2:33:16 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_MEMBERSHIPLEVELTERM_TERMCODE_GETID(@Description nvarchar(8))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when '1 year' then 0
when '2 years' then 1
when '3 years' then 2
when '4 years' then 3
when '5 years' then 4
when '10 years' then 5
when 'Lifetime' then 6
else -1
end
end