[dbo].[GetXmlSystemOptionForVendorConnectKey]
CREATE PROCEDURE [dbo].[GetXmlSystemOptionForVendorConnectKey]
@inVendorConnectKeyId nvarchar(4),
@inOptionName varchar(128)
as
set nocount on
select
XmlSystemOptions.[Value]
from MoversConnectVendor
inner join VendorConnect on VendorConnect.MoversConnectVendorFID = MoversConnectVendor.MoversConnectVendorID
inner join XmlSystemDataTypeMap on XmlSystemDataTypeMap.XmlSystemDataTypeMapID = VendorConnect.XmlSystemDataTypeMapFID
inner join XmlSystemOptions on XmlSystemOptions.XmlSystemFID = XmlSystemDataTypeMap.XmlSystemFID
where
MoversConnectVendor.IntegratorKeyID = @inVendorConnectKeyId and
XmlSystemOptions.[Name] = @inOptionName
GO
GRANT EXECUTE ON [dbo].[GetXmlSystemOptionForVendorConnectKey] TO [MssExec]
GO