Stored Procedures [dbo].[MssWebRemoveLocalServiceOriginDestinationLocation]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@inOrderIdint4
@inLocalServiceIdint4
@inLocationIdint4
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
create procedure [dbo].[MssWebRemoveLocalServiceOriginDestinationLocation]
    @inOrderId int,
    @inLocalServiceId int,
    @inLocationId int
as
begin
    set nocount on

    -- remove origin from local service if matched with the locationId
    update LocServ
    set OriginOrderLocationFID = null
    where LocServ.OrdPriKey = @inOrderId and LocServ.PriKey =@inLocalServiceId and LocServ.OriginOrderLocationFID = @inLocationId;
    -- remove destination from local service if matched with the locationId    
    update LocServ
    set DestinationOrderLocationFID = null
    where LocServ.OrdPriKey = @inOrderId and LocServ.PriKey =@inLocalServiceId and LocServ.DestinationOrderLocationFID = @inLocationId;        
end
GO
GRANT EXECUTE ON  [dbo].[MssWebRemoveLocalServiceOriginDestinationLocation] TO [MssExec]
GO
Uses