UFN_SCHEDULE_WEEKCODE_GETID
Return
Return Type |
---|
tinyint |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@Description | nvarchar(6) | IN |
Definition
Copy
/*
Generated by Blackbaud AppFx Platform
Date: 8/17/2011 2:19:39 PM
Assembly Version: Blackbaud.AppFx.Platform.SqlClr, Version=2.91.1535.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_SCHEDULE_WEEKCODE_GETID(@Description nvarchar(6))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin
return case @Description
when 'None' then 0
when 'First' then 1
when 'Second' then 2
when 'Third' then 3
when 'Fourth' then 4
when 'Last' then 5
else -1
end
end