Tables [dbo].[OutgoingEmailDocumentAttachment]
Properties
PropertyValue
Row Count (~)0
Created9:16:28 AM Friday, November 8, 2024
Last Modified9:16:28 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_OutgoingEmailDocumentAttachment: OutgoingEmailDocumentAttachmentIdOutgoingEmailDocumentAttachmentIdint4
No
1 - 1
Cluster Key IX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_MssDocumentFID: OutgoingEmailFID\MssDocumentFIDForeign Keys FK_OutgoingEmailDocumentAttachment_OutgoingEmail: [dbo].[OutgoingEmail].OutgoingEmailFIDIndexes IX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_AttachmentOrder: OutgoingEmailFID\AttachmentOrderOutgoingEmailFIDint4
No
Cluster Key IX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_MssDocumentFID: OutgoingEmailFID\MssDocumentFIDForeign Keys FK_OutgoingEmailDocumentAttachment_MssDocument: [dbo].[MSSDocument].MssDocumentFIDMssDocumentFIDint4
No
Indexes IX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_AttachmentOrder: OutgoingEmailFID\AttachmentOrderAttachmentOrderint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_OutgoingEmailDocumentAttachment: OutgoingEmailDocumentAttachmentIdPK_OutgoingEmailDocumentAttachmentOutgoingEmailDocumentAttachmentId
Yes
IX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_AttachmentOrderOutgoingEmailFID, AttachmentOrder
Yes
Cluster Key IX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_MssDocumentFID: OutgoingEmailFID\MssDocumentFIDIX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_MssDocumentFIDOutgoingEmailFID, MssDocumentFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmailDocumentAttachment_MssDocumentCascadeMssDocumentFID->[dbo].[MSSDocument].[MSSDocumentID]
FK_OutgoingEmailDocumentAttachment_OutgoingEmailCascadeOutgoingEmailFID->[dbo].[OutgoingEmail].[OutgoingEmailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmailDocumentAttachment]
(
[OutgoingEmailDocumentAttachmentId] [int] NOT NULL IDENTITY(1, 1),
[OutgoingEmailFID] [int] NOT NULL,
[MssDocumentFID] [int] NOT NULL,
[AttachmentOrder] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailDocumentAttachment] ADD CONSTRAINT [PK_OutgoingEmailDocumentAttachment] PRIMARY KEY NONCLUSTERED  ([OutgoingEmailDocumentAttachmentId]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_AttachmentOrder] ON [dbo].[OutgoingEmailDocumentAttachment] ([OutgoingEmailFID], [AttachmentOrder]) ON [PRIMARY]
GO
CREATE UNIQUE CLUSTERED INDEX [IX_OutgoingEmailDocumentAttachment_OutgoingEmailFID_MssDocumentFID] ON [dbo].[OutgoingEmailDocumentAttachment] ([OutgoingEmailFID], [MssDocumentFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailDocumentAttachment] ADD CONSTRAINT [FK_OutgoingEmailDocumentAttachment_MssDocument] FOREIGN KEY ([MssDocumentFID]) REFERENCES [dbo].[MSSDocument] ([MSSDocumentID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[OutgoingEmailDocumentAttachment] ADD CONSTRAINT [FK_OutgoingEmailDocumentAttachment_OutgoingEmail] FOREIGN KEY ([OutgoingEmailFID]) REFERENCES [dbo].[OutgoingEmail] ([OutgoingEmailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[OutgoingEmailDocumentAttachment] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmailDocumentAttachment] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmailDocumentAttachment] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmailDocumentAttachment] TO [MssExec]
GO
Uses
Used By