Views [dbo].[AccountProfilesCustomer_Legacy]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Created7:47:18 PM Saturday, February 7, 2026
Last Modified7:48:55 PM Saturday, February 7, 2026
Columns
Name
AccountProfileID
CustomerJoinField
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
/**
* Don't use this view directly but instead use AccountProfilesCustomer_Synonym.
* AccountProfilesCustomer_Synonym will either point to this view or to
* AccountProfilesCustomer_XLedger if that is active.
*/

create view [dbo].[AccountProfilesCustomer_Legacy]
(
    -- Join to AccountProfiles.AccountProfileID
    AccountProfileID,
    -- Join to CustomerInformation_Synonym.CustomerJoinField
    CustomerJoinField
)
as
select
    AccountProfileID = AccountProfiles.AccountProfileID,
    CustomerJoinField = AccountProfiles.CustomerNumber
from AccountProfiles
GO
GRANT SELECT ON  [dbo].[AccountProfilesCustomer_Legacy] TO [MssExec]
GRANT INSERT ON  [dbo].[AccountProfilesCustomer_Legacy] TO [MssExec]
GRANT DELETE ON  [dbo].[AccountProfilesCustomer_Legacy] TO [MssExec]
GRANT UPDATE ON  [dbo].[AccountProfilesCustomer_Legacy] TO [MssExec]
GO
Uses
Used By