USP_DATAFORMTEMPLATE_VIEW_CAMPAIGNPRIORITYCAMPAIGNINFO
The load procedure used by the view dataform template "Campaign Priority Campaign Info 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. |
@CAMPAIGNID | uniqueidentifier | INOUT | Campaign ID |
@CAMPAIGNNAME | nvarchar(100) | INOUT | Campaign name |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_CAMPAIGNPRIORITYCAMPAIGNINFO (
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CAMPAIGNID uniqueidentifier = null output,
@CAMPAIGNNAME nvarchar(100) = null output
) as
set nocount on;
select
@DATALOADED=1,
@CAMPAIGNID=CAMPAIGN.ID,
@CAMPAIGNNAME=CAMPAIGN.USERID
from dbo.CAMPAIGNPRIORITY
inner join dbo.CAMPAIGN on CAMPAIGN.ID=CAMPAIGNPRIORITY.CAMPAIGNID
where CAMPAIGNPRIORITY.ID=@ID
return 0;