USP_DATAFORMTEMPLATE_EDITLOAD_EVENTSITEPERMISSION

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN
@DATALOADED bit INOUT
@TSLONG bigint INOUT
@HIERARCHY xml INOUT
@SITES xml INOUT

Definition

Copy

CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_EVENTSITEPERMISSION(
  @ID uniqueidentifier,
  @DATALOADED bit = 0 output,
  @TSLONG bigint = 0 output,
  @HIERARCHY xml = null output,
    @SITES xml = null output
)
as

    set nocount on;

    -- be sure to set these, in case the select returns no rows
    set @DATALOADED = 0
    set @TSLONG = 0

  select
        @DATALOADED = 1,
        @TSLONG = TSLONG,
    @SITES = dbo.UFN_EVENT_GETSITES_TOITEMLISTXML(@ID)
  from dbo.EVENT (nolock) where ID = @ID

    return 0;