[dbo].[GetXmlSystemOptionBitValue]
create procedure [dbo].[GetXmlSystemOptionBitValue] (
@inName varchar(128),
@inExternalSystem varchar(50) = null,
@inXmlSystemDatatypeMap varchar(64) = null,
@outOptionBitValue bit output
)
as
begin
set nocount on
declare @theXmlSystemValues table
(
[Value] varchar(4096)
)
insert into @theXmlSystemValues( [Value] )
exec GetXmlSystemOption
@inName = @inName,
@inExternalSystem = @inExternalSystem,
@inXmlSystemDatatypeMap = @inXmlSystemDatatypeMap
set @outOptionBitValue = convert( bit, case isnull( ( select dbo.GetBooleanVarChar([Value]) from @theXmlSystemValues where len( [Value] ) <= 128 ), 'false' )
when 'true' then 1
else 0
end )
end
GO
GRANT EXECUTE ON [dbo].[GetXmlSystemOptionBitValue] TO [MssExec]
GO