Stored Procedures [dbo].[MssWebGetOrderClaimAlertDetail]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@inOrderIdint4
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
create procedure [dbo].[MssWebGetOrderClaimAlertDetail]
    @inOrderId int
as
begin
    set nocount on;
    ;with ClaimNotifcationType as ( select NoteTypeID from NoteType where NoteType = 'Claim Notification' )
    select
        AlertReceivedDate = Orders.AlertReceivedDate,
        NoteTypeId = NoteTypeId
    from Orders
    cross join ClaimNotifcationType
    where Orders.PriKey = @inOrderID
end
GO
GRANT EXECUTE ON  [dbo].[MssWebGetOrderClaimAlertDetail] TO [MssExec]
GO
Uses