Stored Procedures [dbo].[MssWebGetOrderSakariCustomContacts]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@inOrderIdint4
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
create procedure [dbo].[MssWebGetOrderSakariCustomContacts]
    @inOrderId int
as
begin
    set nocount on;
    select
    ContactId= SakariContact.SakariContactID,
    ContactName= SakariContact.ContactName,
    PhoneNumber = SakariContact.PhoneNumber
    from SakariContactOrderMap
    join SakariContact on SakariContact.SakariContactID =  SakariContactOrderMap.SakariContactFID
    where SakariContactOrderMap.OrderFID = @inOrderId
end
GO
GRANT EXECUTE ON  [dbo].[MssWebGetOrderSakariCustomContacts] TO [MssExec]
GO
Uses