USP_DATAFORMTEMPLATE_EDITLOAD_SEGMENTCOUNTENQUEUERCONFIGURATION

Parameters

Parameter Parameter Type Mode Description
@DATALOADED bit INOUT
@TSLONG bigint INOUT
@ISENQUEUEENABLED bit INOUT

Definition

Copy


                                CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_SEGMENTCOUNTENQUEUERCONFIGURATION
                                (
                                    @DATALOADED bit = 0 output,
                                    @TSLONG bigint = 0 output,
                                    @ISENQUEUEENABLED bit = null  output
                                )
                                as
                                set nocount on;

                                -- be sure to set these, in case the select returns no rows

                                set @DATALOADED = 1;
                                set @TSLONG = 0;

                                -- populate the output parameters, which correspond to fields on the form.  Note that

                                -- we set @DATALOADED = 1 to indicate that the load was successful.  Otherwise, the system

                                -- will display a "no data loaded" message.  Also note that we fetch the TSLONG so that concurrency

                                -- can be considered.


                                select @ISENQUEUEENABLED = coalesce(ALLOWENQUEUE, 0)
                                from dbo.BUSINESSPROCESSCATALOG
                                where ID ='585D30CC-C822-4441-A161-F8A2306BDA8D';    -- Marketing Effort Segment Record Count Calculation


                                return 0;