USP_AUCTIONITEM_REMOVEFROMAUCTION
Executes the "Auction Item Remove From Auction Record Operation" 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_AUCTIONITEM_REMOVEFROMAUCTION
(
@ID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier
)
as begin
declare @CURRENTDATE datetime;
set @CURRENTDATE = getdate();
update dbo.AUCTIONITEM
set EVENTAUCTIONID = null,
PACKAGEID = null,
CHANGEDBYID = @CHANGEAGENTID,
DATECHANGED = @CURRENTDATE
where AUCTIONITEM.ID = @ID
return 0;
end