UFN_GENERALPURPOSEEMAIL_GETDATATABLENAME

Gets the name used to create a temporary table to store recipient data for an email job

Return

Return Type
nvarchar(128)

Parameters

Parameter Parameter Type Mode Description
@QUEUEID uniqueidentifier IN

Definition

Copy


CREATE function [dbo].[UFN_GENERALPURPOSEEMAIL_GETDATATABLENAME](@QUEUEID uniqueidentifier)
returns nvarchar(128)
with execute as caller
as begin
   return 'dbo.EMAILSERVICEJOB_' + replace(cast(@QUEUEID as nvarchar(50)),'-','_')
end