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

create view [dbo].[CustomerEmailInformation_Legacy]
/*(
    -- Join to CustomerInformation_Synonym.CustomerJoinField
    CustomerJoinField
)*/

as
select
    -- SY01200.Master_ID is the CUSTNMBR for GP systems.
    CustomerJoinField = Master_ID,
    Email = ltrim( rtrim( INET1 ) )
from SY01200_Synonym
where Master_Type = 'CUS'
GO
GRANT SELECT ON  [dbo].[CustomerEmailInformation_Legacy] TO [MssExec]
GRANT INSERT ON  [dbo].[CustomerEmailInformation_Legacy] TO [MssExec]
GRANT DELETE ON  [dbo].[CustomerEmailInformation_Legacy] TO [MssExec]
GRANT UPDATE ON  [dbo].[CustomerEmailInformation_Legacy] TO [MssExec]
GO
Uses
Used By