USP_EVENTCAPACITY_VIEW
The load procedure used by the view dataform template "Event Capacity View"
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. |
@EVENTLOCATIONID | uniqueidentifier | INOUT | Location |
@EVENTLOCATIONNAME | nvarchar(100) | INOUT | Capacity |
@EVENTLOCATIONCAPACITY | int | INOUT | Capacity |
Definition
Copy
CREATE procedure dbo.USP_EVENTCAPACITY_VIEW
(
@ID uniqueidentifier,
@DATALOADED bit=0 output,
@EVENTLOCATIONID uniqueidentifier=null output,
@EVENTLOCATIONNAME nvarchar(100)=null output,
@EVENTLOCATIONCAPACITY integer=null output
)
as
set nocount on;
select
@DATALOADED=1,
@EVENTLOCATIONID=EVENTLOCATION.ID,
@EVENTLOCATIONNAME=EVENTLOCATION.NAME,
@EVENTLOCATIONCAPACITY=EVENTLOCATION.CAPACITY
from
dbo.EVENTLOCATION
where
ID=@ID;