USP_DATAFORMTEMPLATE_VIEW_PRINTSETUPEXPRESSION

The load procedure used by the view dataform template "Print Setup Expression View Form"

Parameters

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

Definition

Copy


create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_PRINTSETUPEXPRESSION
(
    @DATALOADED bit = 0 output,
    @WORKSTATIONCOUNT int = null output
)
as
    set nocount on;

    set @DATALOADED = 1;

    select
        @WORKSTATIONCOUNT = count(distinct WORKSTATION.ID)
    from
        dbo.WORKSTATION
    inner join
        dbo.WORKSTATIONPRINTER on WORKSTATION.ID = WORKSTATIONPRINTER.WORKSTATIONID;

    return 0;