USP_EVENTSPONSOR_TOGGLECANCELLEDSTATUS
Executes the "USP_EVENTSPONSOR_TOGGLECANCELLEDSTATUS" record operation.
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | Input parameter indicating the ID of the record being updated. |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the update. |
Definition
Copy
CREATE procedure dbo.USP_EVENTSPONSOR_TOGGLECANCELLEDSTATUS
(
@ID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier
)
as begin
--check deletion rules, if any
-- use the system generated delete routine to allow proper recording of the deleting agent
if @CHANGEAGENTID is null
exec dbo.USP_CHANGEAGENT_GETORCREATECHANGEAGENT @CHANGEAGENTID output;
update
dbo.EVENTSPONSOR
set
ISCANCELLED = ~ISCANCELLED,
CHANGEDBYID = @CHANGEAGENTID,
DATECHANGED = getdate()
where
EVENTSPONSOR.ID = @ID;
return 0;
end