USP_DATAFORMTEMPLATE_VIEW_MKTCREATIVEATTACHMENT
The load procedure used by the view dataform template "Creative Attachment View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@ATTACHMENTTYPECODE | nvarchar(100) | INOUT | Type |
@NAME | nvarchar(100) | INOUT | Name |
@DESCRIPTION | nvarchar(255) | INOUT | Description |
@FILENAME | nvarchar(255) | INOUT | File name |
@FILETHUMBNAIL | varbinary | INOUT | File thumbnail |
@FILE | varbinary | INOUT |
Definition
Copy
CREATE procedure dbo.[USP_DATAFORMTEMPLATE_VIEW_MKTCREATIVEATTACHMENT]
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@ATTACHMENTTYPECODE nvarchar(100) = null output,
@NAME nvarchar(100) = null output,
@DESCRIPTION nvarchar(255) = null output,
@FILENAME nvarchar(255) = null output,
@FILETHUMBNAIL varbinary(max) = null output,
@FILE varbinary(max) = null output
)
as
set nocount on;
set @DATALOADED = 0;
select
@DATALOADED = 1,
@ATTACHMENTTYPECODE = [MKTATTACHMENTTYPECODE].[DESCRIPTION],
@NAME = [MKTCREATIVEATTACHMENT].[NAME],
@DESCRIPTION = [MKTCREATIVEATTACHMENT].[DESCRIPTION],
@FILENAME = [MKTCREATIVEATTACHMENT].[FILENAME],
@FILETHUMBNAIL = [MKTCREATIVEATTACHMENT].[FILETHUMBNAIL]
from dbo.[MKTCREATIVEATTACHMENT]
inner join [MKTATTACHMENTTYPECODE] on [MKTATTACHMENTTYPECODE].[ID] = [MKTCREATIVEATTACHMENT].[ATTACHMENTTYPECODEID]
where [MKTCREATIVEATTACHMENT].[ID] = @ID;
return 0;