create procedure [dbo].[GetXmlOrderLink]
@inXmlSystemDataTypeMap varchar(64),
@inOrderId int
as
set nocount on
declare @theXmlSystemId int
select @theXmlSystemId = XmlSystemFID
from XmlSystemDataTypeMap
where [Name] = @inXmlSystemDataTypeMap
select
ExternalKey,
SecondaryExternalKey
from XmlOrderLink
where
OrderFID = @inOrderID and
XmlSystemFID = @theXmlSystemId
GO
GRANT EXECUTE ON [dbo].[GetXmlOrderLink] TO [MssExec]
GO