Tables [dbo].[OutgoingEmailInlineAttachment]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:11:50 AM Thursday, May 23, 2024
Last Modified9:11:50 AM Thursday, May 23, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_OutgoingEmailInlineAttachment: OutgoingEmailInlineAttachmentIdOutgoingEmailInlineAttachmentIdint4
No
1 - 1
Cluster Key IX_OutgoingEmailInlineAttachment_OutgoingEmailFID_ContentId: OutgoingEmailFID\ContentIdForeign Keys FK_OutgoingEmailInlineAttachment_OutgoingEmail: [dbo].[OutgoingEmail].OutgoingEmailFIDOutgoingEmailFIDint4
No
Cluster Key IX_OutgoingEmailInlineAttachment_OutgoingEmailFID_ContentId: OutgoingEmailFID\ContentIdContentIdnvarchar(64)128
No
MimeTypenvarchar(64)128
No
Contentvarbinary(max)max
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_OutgoingEmailInlineAttachment: OutgoingEmailInlineAttachmentIdPK_OutgoingEmailInlineAttachmentOutgoingEmailInlineAttachmentId
Yes
Cluster Key IX_OutgoingEmailInlineAttachment_OutgoingEmailFID_ContentId: OutgoingEmailFID\ContentIdIX_OutgoingEmailInlineAttachment_OutgoingEmailFID_ContentIdOutgoingEmailFID, ContentId
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmailInlineAttachment_OutgoingEmailCascadeOutgoingEmailFID->[dbo].[OutgoingEmail].[OutgoingEmailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmailInlineAttachment]
(
[OutgoingEmailInlineAttachmentId] [int] NOT NULL IDENTITY(1, 1),
[OutgoingEmailFID] [int] NOT NULL,
[ContentId] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[MimeType] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Content] [varbinary] (max) NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailInlineAttachment] ADD CONSTRAINT [PK_OutgoingEmailInlineAttachment] PRIMARY KEY NONCLUSTERED  ([OutgoingEmailInlineAttachmentId]) ON [PRIMARY]
GO
CREATE UNIQUE CLUSTERED INDEX [IX_OutgoingEmailInlineAttachment_OutgoingEmailFID_ContentId] ON [dbo].[OutgoingEmailInlineAttachment] ([OutgoingEmailFID], [ContentId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailInlineAttachment] ADD CONSTRAINT [FK_OutgoingEmailInlineAttachment_OutgoingEmail] FOREIGN KEY ([OutgoingEmailFID]) REFERENCES [dbo].[OutgoingEmail] ([OutgoingEmailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[OutgoingEmailInlineAttachment] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmailInlineAttachment] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmailInlineAttachment] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmailInlineAttachment] TO [MssExec]
GO
Uses
Used By