Tables [dbo].[AutoCommissionPreferredAgentMap]
Properties
PropertyValue
HeapYes
Row Count (~)0
Created5:01:53 PM Tuesday, November 4, 2008
Last Modified11:13:37 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_AutoCommissionPreferredAgentMap: AutoCommissionPreferredAgentMapIDAutoCommissionPreferredAgentMapIDint4
No
1 - 1
Foreign Keys FK_AutoCommissionPreferredAgentMap_AutoCommissionOptions: [dbo].[AutoCommissionOptions].AutoCommissionOptionsFIDIndexes IX_AutoCommissionPreferredAgentMap_AutoCommissionOptions_PreferredRevenueAgent: AutoCommissionOptionsFID\PreferredRevenueAgentFIDAutoCommissionOptionsFIDint4
No
Foreign Keys FK_AutoCommissionPreferredAgentMap_PreferredRevenueAgent: [dbo].[PreferredRevenueAgent].PreferredRevenueAgentFIDIndexes IX_AutoCommissionPreferredAgentMap_AutoCommissionOptions_PreferredRevenueAgent: AutoCommissionOptionsFID\PreferredRevenueAgentFIDPreferredRevenueAgentFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_AutoCommissionPreferredAgentMap: AutoCommissionPreferredAgentMapIDPK_AutoCommissionPreferredAgentMapAutoCommissionPreferredAgentMapID
Yes
80
IX_AutoCommissionPreferredAgentMap_AutoCommissionOptions_PreferredRevenueAgentAutoCommissionOptionsFID, PreferredRevenueAgentFID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_AutoCommissionPreferredAgentMap_AutoCommissionOptionsAutoCommissionOptionsFID->[dbo].[AutoCommissionOptions].[AutoCommissionOptionsID]
FK_AutoCommissionPreferredAgentMap_PreferredRevenueAgentPreferredRevenueAgentFID->[dbo].[PreferredRevenueAgent].[PreferredRevenueAgentID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AutoCommissionPreferredAgentMap]
(
[AutoCommissionPreferredAgentMapID] [int] NOT NULL IDENTITY(1, 1),
[AutoCommissionOptionsFID] [int] NOT NULL,
[PreferredRevenueAgentFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AutoCommissionPreferredAgentMap] ADD CONSTRAINT [PK_AutoCommissionPreferredAgentMap] PRIMARY KEY NONCLUSTERED  ([AutoCommissionPreferredAgentMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AutoCommissionPreferredAgentMap] ADD CONSTRAINT [IX_AutoCommissionPreferredAgentMap_AutoCommissionOptions_PreferredRevenueAgent] UNIQUE NONCLUSTERED  ([AutoCommissionOptionsFID], [PreferredRevenueAgentFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AutoCommissionPreferredAgentMap] ADD CONSTRAINT [FK_AutoCommissionPreferredAgentMap_AutoCommissionOptions] FOREIGN KEY ([AutoCommissionOptionsFID]) REFERENCES [dbo].[AutoCommissionOptions] ([AutoCommissionOptionsID])
GO
ALTER TABLE [dbo].[AutoCommissionPreferredAgentMap] ADD CONSTRAINT [FK_AutoCommissionPreferredAgentMap_PreferredRevenueAgent] FOREIGN KEY ([PreferredRevenueAgentFID]) REFERENCES [dbo].[PreferredRevenueAgent] ([PreferredRevenueAgentID])
GO
GRANT SELECT ON  [dbo].[AutoCommissionPreferredAgentMap] TO [MssExec]
GRANT INSERT ON  [dbo].[AutoCommissionPreferredAgentMap] TO [MssExec]
GRANT DELETE ON  [dbo].[AutoCommissionPreferredAgentMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[AutoCommissionPreferredAgentMap] TO [MssExec]
GO
Uses