USP_DATAFORMTEMPLATE_VIEW_SALESORDERCOMMENTS

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN
@DATALOADED bit INOUT
@COMMENTS nvarchar(1000) INOUT

Definition

Copy

create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_SALESORDERCOMMENTS
(
    @ID uniqueidentifier,
    @DATALOADED bit = 0 output,
    @COMMENTS nvarchar(1000) = null output
)
as
    set nocount on;

    set @DATALOADED = 0;

    select
        @DATALOADED = 1,
        @COMMENTS = COMMENTS
    from
        dbo.SALESORDER
    where
        ID = @ID;

    return 0;