USP_GETTASKSTATUS_APPUSERS

Parameters

Parameter Parameter Type Mode Description
@STATUS tinyint INOUT
@DESCRIPTION nvarchar(max) INOUT

Definition

Copy


CREATE procedure dbo.USP_GETTASKSTATUS_APPUSERS
(
    @STATUS tinyint = null output,
    @DESCRIPTION nvarchar(max) = null output
)
as begin

set @STATUS = (case when (
    select count(*)
    from dbo.APPUSER with (nolock)
) > 0 then 2 else 0 end);

end