USP_MEMBERSHIPCANCELLATIONCODE_MARKINACTIVE
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | |
@CHANGEAGENTID | uniqueidentifier | IN |
Definition
Copy
create procedure dbo.USP_MEMBERSHIPCANCELLATIONCODE_MARKINACTIVE
(
@ID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier
)
as
set nocount on
declare @CURRENTDATE datetime
set @CURRENTDATE = getdate()
begin try
update dbo.MEMBERSHIPCANCELLATIONCODE set
ACTIVE = 0,
DATECHANGED = @CURRENTDATE,
CHANGEDBYID = @CHANGEAGENTID
where ID = @ID
end try
begin catch
exec dbo.USP_RAISE_ERROR
return 1
end catch
return 0;