Scalar-valued Functions [dbo].[IsBc]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
create function dbo.IsBc
(
)
returns bit
as
begin
    return
        convert( bit,
            isnull(
                ( select top 1 1 from GlobalSystemOption where Name = 'AccountingSystemType' and Value = 'BC' ),
                0
            )
        )
end
GO
GRANT EXECUTE ON  [dbo].[IsBc] TO [MssExec]
GO
Uses
Used By