Tables [dbo].[OutgoingEmailOrderMap]
Properties
PropertyValue
Row Count (~)0
Created7:39:53 PM Wednesday, February 28, 2024
Last Modified7:39:53 PM Wednesday, February 28, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_OutgoingEmailOrderMap: OutgoingEmailOrderMapIdOutgoingEmailOrderMapIdint4
No
1 - 1
Cluster Key IX_OutgoingEmailOrderMap_OrderFID_OutgoingEmailFID: OrderFID\OutgoingEmailFIDForeign Keys FK_OutgoingEmailOrderMap_OutgoingEmail: [dbo].[OutgoingEmail].OutgoingEmailFIDIndexes IX_OutgoingEmailOrderMap_OutgoingEmailFID: OutgoingEmailFIDOutgoingEmailFIDint4
No
Cluster Key IX_OutgoingEmailOrderMap_OrderFID_OutgoingEmailFID: OrderFID\OutgoingEmailFIDForeign Keys FK_OutgoingEmailOrderMap_Orders: [dbo].[Orders].OrderFIDOrderFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_OutgoingEmailOrderMap: OutgoingEmailOrderMapIdPK_OutgoingEmailOrderMapOutgoingEmailOrderMapId
Yes
Cluster Key IX_OutgoingEmailOrderMap_OrderFID_OutgoingEmailFID: OrderFID\OutgoingEmailFIDIX_OutgoingEmailOrderMap_OrderFID_OutgoingEmailFIDOrderFID, OutgoingEmailFID
Yes
IX_OutgoingEmailOrderMap_OutgoingEmailFIDOutgoingEmailFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmailOrderMap_OrdersCascadeOrderFID->[dbo].[Orders].[PriKey]
FK_OutgoingEmailOrderMap_OutgoingEmailCascadeOutgoingEmailFID->[dbo].[OutgoingEmail].[OutgoingEmailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmailOrderMap]
(
[OutgoingEmailOrderMapId] [int] NOT NULL IDENTITY(1, 1),
[OutgoingEmailFID] [int] NOT NULL,
[OrderFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailOrderMap] ADD CONSTRAINT [PK_OutgoingEmailOrderMap] PRIMARY KEY NONCLUSTERED  ([OutgoingEmailOrderMapId]) ON [PRIMARY]
GO
CREATE UNIQUE CLUSTERED INDEX [IX_OutgoingEmailOrderMap_OrderFID_OutgoingEmailFID] ON [dbo].[OutgoingEmailOrderMap] ([OrderFID], [OutgoingEmailFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OutgoingEmailOrderMap_OutgoingEmailFID] ON [dbo].[OutgoingEmailOrderMap] ([OutgoingEmailFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailOrderMap] ADD CONSTRAINT [FK_OutgoingEmailOrderMap_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[OutgoingEmailOrderMap] ADD CONSTRAINT [FK_OutgoingEmailOrderMap_OutgoingEmail] FOREIGN KEY ([OutgoingEmailFID]) REFERENCES [dbo].[OutgoingEmail] ([OutgoingEmailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[OutgoingEmailOrderMap] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmailOrderMap] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmailOrderMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmailOrderMap] TO [MssExec]
GO
Uses
Used By