USP_BATCHBBNCSIGNUPBATCHUSERMESSAGE_DELETEBYBATCHID

Auto-generated procedure to handle error/rejection/exception messages for the BATCHBBNCSIGNUP batch message table

Parameters

Parameter Parameter Type Mode Description
@BATCHID uniqueidentifier IN
@CHANGEAGENTID uniqueidentifier IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  9/1/2024 11:54:41 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.3800.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE PROCEDURE dbo.USP_BATCHBBNCSIGNUPBATCHUSERMESSAGE_DELETEBYBATCHID
(
@BATCHID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier
)

as

set nocount on;    

    declare @contextCache varbinary(128);

    if @CHANGEAGENTID is null
        exec dbo.USP_CHANGEAGENT_GETORCREATECHANGEAGENT @CHANGEAGENTID output;

    set @contextCache = CONTEXT_INFO();

    set CONTEXT_INFO @CHANGEAGENTID;

    delete from dbo.BATCHBBNCSIGNUPBATCHUSERMESSAGE where exists (select BATCHBBNCSIGNUP.ID from dbo.BATCHBBNCSIGNUP where BATCHBBNCSIGNUP.ID = BATCHBBNCSIGNUPBATCHUSERMESSAGE.ID and BATCHID = @BATCHID);

    if not @contextCache is null
        set CONTEXT_INFO @contextCache;

    return 0;