Tables [dbo].[OutgoingEmailFailure]
Properties
PropertyValue
Row Count (~)0
Created7:32:50 PM Tuesday, June 11, 2024
Last Modified7:32:50 PM Tuesday, June 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OutgoingEmailFailure: OutgoingEmailFailureIDOutgoingEmailFailureIDint4
No
1 - 1
Foreign Keys FK_OutgoingEmailFailure_OutgoingEmail: [dbo].[OutgoingEmail].OutgoingEmailFIDIndexes IX_OutgoingEmailFailure_OutgoingEmailFID_OutgoingEmailBatchFailureFID: OutgoingEmailFID\OutgoingEmailBatchFailureFIDOutgoingEmailFIDint4
No
Foreign Keys FK_OutgoingEmailFailure_OutgoingEmailBatchFailure: [dbo].[OutgoingEmailBatchFailure].OutgoingEmailBatchFailureFIDIndexes IX_OutgoingEmailFailure_OutgoingEmailFID_OutgoingEmailBatchFailureFID: OutgoingEmailFID\OutgoingEmailBatchFailureFIDOutgoingEmailBatchFailureFIDint4
No
EnqueuedAtdatetimeoffset10
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OutgoingEmailFailure: OutgoingEmailFailureIDPK_OutgoingEmailFailureOutgoingEmailFailureID
Yes
IX_OutgoingEmailFailure_OutgoingEmailFID_OutgoingEmailBatchFailureFIDOutgoingEmailFID, OutgoingEmailBatchFailureFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmailFailure_OutgoingEmailBatchFailureOutgoingEmailBatchFailureFID->[dbo].[OutgoingEmailBatchFailure].[OutgoingEmailBatchFailureId]
FK_OutgoingEmailFailure_OutgoingEmailCascadeOutgoingEmailFID->[dbo].[OutgoingEmail].[OutgoingEmailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmailFailure]
(
[OutgoingEmailFailureID] [int] NOT NULL IDENTITY(1, 1),
[OutgoingEmailFID] [int] NOT NULL,
[OutgoingEmailBatchFailureFID] [int] NOT NULL,
[EnqueuedAt] [datetimeoffset] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailFailure] ADD CONSTRAINT [PK_OutgoingEmailFailure] PRIMARY KEY CLUSTERED  ([OutgoingEmailFailureID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_OutgoingEmailFailure_OutgoingEmailFID_OutgoingEmailBatchFailureFID] ON [dbo].[OutgoingEmailFailure] ([OutgoingEmailFID], [OutgoingEmailBatchFailureFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailFailure] ADD CONSTRAINT [FK_OutgoingEmailFailure_OutgoingEmailBatchFailure] FOREIGN KEY ([OutgoingEmailBatchFailureFID]) REFERENCES [dbo].[OutgoingEmailBatchFailure] ([OutgoingEmailBatchFailureId])
GO
ALTER TABLE [dbo].[OutgoingEmailFailure] ADD CONSTRAINT [FK_OutgoingEmailFailure_OutgoingEmail] FOREIGN KEY ([OutgoingEmailFID]) REFERENCES [dbo].[OutgoingEmail] ([OutgoingEmailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[OutgoingEmailFailure] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmailFailure] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmailFailure] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmailFailure] TO [MssExec]
GO
Uses
Used By