Table-valued Functions [dbo].[GetGlAccountJoinField_Legacy]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@inAccountingAccountIdint4
@inGLNumbervarchar(65)65
Permissions
TypeActionOwning Principal
GrantSelectMssExec
SQL Script
/*
*    Creates a table function for joining constant GlAccountJoinField values to the
*    GlAccountInformation view or others that have GlAccountJoinField.
*    The GetGlAccountJoinField_Synonym will be set to use the appropriate function for the current
*    system, based upon if they have XLedger, GP, QuickBooks or no accounting system.
*/

create function [dbo].[GetGlAccountJoinField_Legacy]( @inAccountingAccountId int, @inGLNumber varchar(65) )
returns table as
    return (
        select
            GlAccountJoinField = @inGLNumber
    )
GO
GRANT SELECT ON  [dbo].[GetGlAccountJoinField_Legacy] TO [MssExec]
GO
Uses
Used By