UFN_EXCHANGECALENDARSYNC_EXPECTEDDATEINTERVALCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(34) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 12/17/2008 2:18:48 AM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=1.7.1271.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_EXCHANGECALENDARSYNC_EXPECTEDDATEINTERVALCODE_GETID(@Description nvarchar(34))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'One month from the current date' then 0
when 'Two months from the current date' then 1
when 'Three months from the current date' then 2
when 'Four months from the current date' then 3
when 'Five months from the current date' then 4
when 'Six months from the current date' then 5
else -1
end
end