USP_PROJECT_MARKINACTIVE

Executes the "Project: Mark Inactive" 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_PROJECT_MARKINACTIVE
(
    @ID uniqueidentifier,
    @CHANGEAGENTID uniqueidentifier
)
as begin
    set nocount on;

    declare @r int;
    exec @r = dbo.USP_DATAELEMENT_MARKINACTIVE
        @ID = @ID,
        @CHANGEAGENTID = @CHANGEAGENTID

    if @@error <> 0
        begin
            if @r <> 0 return @r
            return 1;
        end

    return @r;
end