Views [dbo].[StorageAlternateCustomer_Legacy]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Created9:18:37 AM Wednesday, October 15, 2025
Last Modified9:19:04 AM Wednesday, October 15, 2025
Columns
Name
StoragePriKey
CustomerJoinField
CustomerAddressJoinField
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
/**
* Don't use this view directly but instead use StorageAlternateCustomer_Synonym.
* StorageAlternateCustomer_Synonym will either point to this view or to
* StorageAlternateCustomer_XLedger if that is active.
*/

create view [dbo].[StorageAlternateCustomer_Legacy]
(
    -- Join to Storage.StoragePriKey
    StoragePriKey,
    -- Join to CustomerInformation_Synonym.CustomerJoinField
    CustomerJoinField,
    -- Join to CustomerAddressInformation_Synonym.CustomerAddressJoinField (along with CustomerJoinField)
    CustomerAddressJoinField
)
as
select
    StoragePriKey = Storage.StoragePriKey,
    CustomerJoinField = Storage.AlternateCustomerNumber,
    CustomerAddressJoinField = Storage.AlternateCustomerAddressCode
from Storage
GO
GRANT SELECT ON  [dbo].[StorageAlternateCustomer_Legacy] TO [MssExec]
GRANT INSERT ON  [dbo].[StorageAlternateCustomer_Legacy] TO [MssExec]
GRANT DELETE ON  [dbo].[StorageAlternateCustomer_Legacy] TO [MssExec]
GRANT UPDATE ON  [dbo].[StorageAlternateCustomer_Legacy] TO [MssExec]
GO
Uses
Used By