Tables [dbo].[OutgoingEmailQueue]
Properties
PropertyValue
Row Count (~)0
Created9:00:16 AM Friday, October 11, 2024
Last Modified9:00:16 AM Friday, October 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_OutgoingEmailQueue: OutgoingEmailQueueIDOutgoingEmailQueueIDint4
No
1 - 1
Foreign Keys FK_OutgoingEmailQueue_OutgoingEmail: [dbo].[OutgoingEmail].OutgoingEmailFIDIndexes IX_OutgoingEmailQueue_OutgoingEmailFID: OutgoingEmailFIDOutgoingEmailFIDint4
No
EnqueuedAtdatetimeoffset10
No
(sysdatetimeoffset())
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OutgoingEmailQueue: OutgoingEmailQueueIDPK_OutgoingEmailQueueOutgoingEmailQueueID
Yes
IX_OutgoingEmailQueue_OutgoingEmailFIDOutgoingEmailFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmailQueue_OutgoingEmailCascadeOutgoingEmailFID->[dbo].[OutgoingEmail].[OutgoingEmailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmailQueue]
(
[OutgoingEmailQueueID] [int] NOT NULL IDENTITY(1, 1),
[OutgoingEmailFID] [int] NOT NULL,
[EnqueuedAt] [datetimeoffset] NOT NULL CONSTRAINT [DF_OutgoingEmailQueue_EnqueuedAt] DEFAULT (sysdatetimeoffset())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailQueue] ADD CONSTRAINT [PK_OutgoingEmailQueue] PRIMARY KEY CLUSTERED  ([OutgoingEmailQueueID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OutgoingEmailQueue_OutgoingEmailFID] ON [dbo].[OutgoingEmailQueue] ([OutgoingEmailFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailQueue] ADD CONSTRAINT [FK_OutgoingEmailQueue_OutgoingEmail] FOREIGN KEY ([OutgoingEmailFID]) REFERENCES [dbo].[OutgoingEmail] ([OutgoingEmailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[OutgoingEmailQueue] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmailQueue] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmailQueue] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmailQueue] TO [MssExec]
GO
Uses
Used By