USP_RECORDOPERATION_MARKSOURCECODEINACTIVEPROMPT

Provides the prompt for the "Source Code: Mark Inactive" record operation.

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN Represents information to be displayed in the record operation prompt.
@NAME nvarchar(100) INOUT
@TOGGLETEXT nvarchar(8) INOUT

Definition

Copy


CREATE procedure dbo.USP_RECORDOPERATION_MARKSOURCECODEINACTIVEPROMPT
(
  @ID uniqueidentifier,
  @NAME nvarchar(100) output,
  @TOGGLETEXT nvarchar(8) output
)
as
  set nocount on;

  select
    @NAME = [NAME],
    @TOGGLETEXT = (case [ISACTIVE] when 1 then 'inactive' else 'active' end)
  from
    dbo.[MKTSOURCECODE]
  where
    ID = @ID;

  return 0;