Tables [dbo].[OutgoingEmailAddress]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:46:59 AM Thursday, December 5, 2024
Last Modified8:51:25 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OutgoingEmailAddress: OutgoingEmailAddressTypeFID\OutgoingEmailAddressIdOutgoingEmailAddressIdint4
No
1 - 1
Foreign Keys FK_OutgoingEmailAddress_OutgoingEmailFID: [dbo].[OutgoingEmail].OutgoingEmailFIDIndexes IX_OutgoingEmailAddress_OutgoingEmailFID: OutgoingEmailFIDOutgoingEmailFIDint4
No
Cluster Primary Key PK_OutgoingEmailAddress: OutgoingEmailAddressTypeFID\OutgoingEmailAddressIdForeign Keys FK_OutgoingEmailAddress_OutgoingEmailAddressTypeFID: [dbo].[OutgoingEmailAddressType].OutgoingEmailAddressTypeFIDOutgoingEmailAddressTypeFIDint4
No
Namenvarchar(120)240
Yes
Addressnvarchar(120)240
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OutgoingEmailAddress: OutgoingEmailAddressTypeFID\OutgoingEmailAddressIdPK_OutgoingEmailAddressOutgoingEmailAddressTypeFID, OutgoingEmailAddressId
Yes
IX_OutgoingEmailAddress_OutgoingEmailFIDOutgoingEmailFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_OutgoingEmailAddress_OutgoingEmailAddressTypeFIDOutgoingEmailAddressTypeFID->[dbo].[OutgoingEmailAddressType].[OutgoingEmailAddressTypeID]
FK_OutgoingEmailAddress_OutgoingEmailFIDCascadeOutgoingEmailFID->[dbo].[OutgoingEmail].[OutgoingEmailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OutgoingEmailAddress]
(
[OutgoingEmailAddressId] [int] NOT NULL IDENTITY(1, 1),
[OutgoingEmailFID] [int] NOT NULL,
[OutgoingEmailAddressTypeFID] [int] NOT NULL,
[Name] [nvarchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Address] [nvarchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailAddress] ADD CONSTRAINT [PK_OutgoingEmailAddress] PRIMARY KEY CLUSTERED  ([OutgoingEmailAddressTypeFID], [OutgoingEmailAddressId]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OutgoingEmailAddress_OutgoingEmailFID] ON [dbo].[OutgoingEmailAddress] ([OutgoingEmailFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OutgoingEmailAddress] ADD CONSTRAINT [FK_OutgoingEmailAddress_OutgoingEmailAddressTypeFID] FOREIGN KEY ([OutgoingEmailAddressTypeFID]) REFERENCES [dbo].[OutgoingEmailAddressType] ([OutgoingEmailAddressTypeID])
GO
ALTER TABLE [dbo].[OutgoingEmailAddress] ADD CONSTRAINT [FK_OutgoingEmailAddress_OutgoingEmailFID] FOREIGN KEY ([OutgoingEmailFID]) REFERENCES [dbo].[OutgoingEmail] ([OutgoingEmailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[OutgoingEmailAddress] TO [MssExec]
GRANT INSERT ON  [dbo].[OutgoingEmailAddress] TO [MssExec]
GRANT DELETE ON  [dbo].[OutgoingEmailAddress] TO [MssExec]
GRANT UPDATE ON  [dbo].[OutgoingEmailAddress] TO [MssExec]
GO
Uses
Used By