Views [dbo].[OrdersCustomer_XLedger]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Created3:09:18 PM Tuesday, June 24, 2025
Last Modified3:09:18 PM Tuesday, June 24, 2025
Columns
Name
PriKey
CustomerJoinField
CustomerAddressJoinField
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
/**
* Don't use this view directly but instead use OrdersCustomer_Synonym.
* OrdersCustomer_Synonym will either point to this view or to
* OrdersCustomer_Legacy if that is active.
*/

create view [dbo].[OrdersCustomer_XLedger]
(
    -- Join to Orders.PriKey
    PriKey,
    -- Join to CustomerInformation_Synonym.CustomerJoinField
    CustomerJoinField,
    -- Join to CustomerAddressInformation_Synonym.CustomerAddressJoinField (along with CustomerJoinField)
    CustomerAddressJoinField
)
as
select
    PriKey = Orders.PriKey,
    CustomerJoinField = Orders.AccountingCustomerFid,
    CustomerAddressJoinField = Orders.AccountingCustomerAddressFid
from Orders
GO
GRANT SELECT ON  [dbo].[OrdersCustomer_XLedger] TO [MssExec]
GRANT INSERT ON  [dbo].[OrdersCustomer_XLedger] TO [MssExec]
GRANT DELETE ON  [dbo].[OrdersCustomer_XLedger] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrdersCustomer_XLedger] TO [MssExec]
GO
Uses