Tables [dbo].[OutgoingEmailStatus]
Properties
PropertyValue
Row Count (~)0
Created7:34:24 PM Tuesday, September 24, 2024
Last Modified7:34:24 PM Tuesday, September 24, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_OutgoingEmailStatus: OutgoingEmailStatusIdOutgoingEmailStatusIdint4
No
1 - 1
Cluster Key IX_OutgoingEmailStatus_OutgoingEmailFID: OutgoingEmailFIDForeign Keys FK_OutgoingEmailStatus_OutgoingEmail: [dbo].[OutgoingEmail].OutgoingEmailFIDOutgoingEmailFIDint4
No
Indexes IX_OutgoingEmailStatus_LastActivity: LastActivityLastActivitydatetimeoffset10
No
Succeededbit1
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_OutgoingEmailStatus: OutgoingEmailStatusIdPK_OutgoingEmailStatusOutgoingEmailStatusId
Yes
Cluster Key IX_OutgoingEmailStatus_OutgoingEmailFID: OutgoingEmailFIDIX_OutgoingEmailStatus_OutgoingEmailFIDOutgoingEmailFID
Yes
IX_OutgoingEmailStatus_LastActivityLastActivity
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmailStatus_OutgoingEmailCascadeOutgoingEmailFID->[dbo].[OutgoingEmail].[OutgoingEmailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmailStatus]
(
[OutgoingEmailStatusId] [int] NOT NULL IDENTITY(1, 1),
[OutgoingEmailFID] [int] NOT NULL,
[LastActivity] [datetimeoffset] NOT NULL,
[Succeeded] [bit] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailStatus] ADD CONSTRAINT [PK_OutgoingEmailStatus] PRIMARY KEY NONCLUSTERED  ([OutgoingEmailStatusId]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OutgoingEmailStatus_LastActivity] ON [dbo].[OutgoingEmailStatus] ([LastActivity]) ON [PRIMARY]
GO
CREATE UNIQUE CLUSTERED INDEX [IX_OutgoingEmailStatus_OutgoingEmailFID] ON [dbo].[OutgoingEmailStatus] ([OutgoingEmailFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailStatus] ADD CONSTRAINT [FK_OutgoingEmailStatus_OutgoingEmail] FOREIGN KEY ([OutgoingEmailFID]) REFERENCES [dbo].[OutgoingEmail] ([OutgoingEmailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[OutgoingEmailStatus] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmailStatus] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmailStatus] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmailStatus] TO [MssExec]
GO
Uses
Used By