UFN_PROGRAM_GETNAME

Return

Return Type
nvarchar(100)

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN

Definition

Copy


            create function dbo.UFN_PROGRAM_GETNAME(@ID uniqueidentifier)
            returns nvarchar(100)
            with execute as caller
            as begin
                    declare @PROGRAMNAME nvarchar(100);

                    select 
                        @PROGRAMNAME = NAME
                    from dbo.PROGRAM
                    where ID = @ID;
                return @PROGRAMNAME;    
            end