/* * Creates a table function for joining constant CustomerJoinField to other * views that have CustomerJoinField. * The GetCustomerJoinField_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. */ createfunction[dbo].[GetCustomerJoinField_XLedger](@inCustomerIdint,@inCustNumbervarchar(15)) returnstableas return( select CustomerJoinField=@inCustomerId ) GO GRANTSELECTON[dbo].[GetCustomerJoinField_XLedger]TO[MssExec] GO