USP_STAFFRESOURCE_DELETE_PROMPT

Provides the prompt for the "Staff Resource: Delete" record operation.

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN Represents information to be displayed in the record operation prompt.
@PROMPT nvarchar(1024) INOUT

Definition

Copy


                    CREATE procedure dbo.USP_STAFFRESOURCE_DELETE_PROMPT
                    (
                        @ID uniqueidentifier,
                        @PROMPT nvarchar(1024) = null output
                    )
                    as
                    set nocount on;

                    if exists(select top 1 ID from dbo.VOLUNTEERVOLUNTEERTYPE where VOLUNTEERTYPEID = @ID)
                        set @PROMPT = 'Are you sure you want to delete a staffing resource currently in use?'
                    else
                        set @PROMPT = 'Are you sure you wish to delete this staffing resource?'

                    return 0;