USP_CONSTITUENTMERGECONFIGURATION_DELETE

Executes the "Constituent Merge Configuration: Delete" record operation.

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN Input parameter indicating the ID of the record being deleted.
@CHANGEAGENTID uniqueidentifier IN Input parameter indicating the ID of the change agent invoking the delete.

Definition

Copy


                    CREATE procedure dbo.USP_CONSTITUENTMERGECONFIGURATION_DELETE
                    (
                        @ID uniqueidentifier,
                        @CHANGEAGENTID uniqueidentifier
                    )
                    with execute as owner
                    as
                        set nocount on;

                        declare @SPNAME nvarchar(100);
                        select @SPNAME = SPNAME from dbo.MERGECONFIGURATION where ID = @ID;
                        exec ('drop procedure dbo.[' + @SPNAME + ']');
                        exec dbo.USP_MERGECONFIGURATION_DELETEBYID_WITHCHANGEAGENTID @ID, @CHANGEAGENTID;

                        return 0;