UFN_DESIGNATION_NAME_BY_ID

Returns the name of a designation

Return

Return Type
nvarchar(512)

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN

Definition

Copy


create function dbo.UFN_DESIGNATION_NAME_BY_ID(@ID uniqueidentifier)
returns nvarchar(512)
with execute as caller
as begin
    declare @NAME nvarchar(512)
  select @NAME = [VANITYNAME] from dbo.DESIGNATION where [ID] = @ID
    return @NAME
end