USP_DATAFORMTEMPLATE_VIEW_USAGEREPORTPAGEEXPRESSION

The load procedure used by the view dataform template "Application Usage Report Process Page Expression View Form"

Parameters

Parameter Parameter Type Mode Description
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@PARAMETERSETID uniqueidentifier INOUT PARAMETERSETID

Definition

Copy


                CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_USAGEREPORTPAGEEXPRESSION
                (
                    @DATALOADED bit = 0 output,
                    @PARAMETERSETID uniqueidentifier = null output
                )
                as
                    set nocount on;

                    set @DATALOADED = 1;

                    select top 1
                        @PARAMETERSETID = ID
                    from
                        dbo.USAGEREPORTPROCESS
                    order by
                        DATEADDED;

                    return 0;