Tables [dbo].[RecentlyUsedEmailAddress]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:53:07 AM Thursday, December 5, 2024
Last Modified8:53:07 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_RecentlyUsedEmailAddress: RecentlyUsedEmailIdRecentlyUsedEmailIdint4
No
1 - 1
Cluster Key IX_RecentlyUsedEmailAddress_SysUserId_EmailAddress: SenderSysUserFid\EmailAddressForeign Keys FK_RecentlyUsedEmailAddress: [dbo].[Sysuser].SenderSysUserFidSenderSysUserFidint4
No
RecipientNamenvarchar(120)240
Yes
Cluster Key IX_RecentlyUsedEmailAddress_SysUserId_EmailAddress: SenderSysUserFid\EmailAddressEmailAddressnvarchar(120)240
No
LastUsedOndatetimeoffset10
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_RecentlyUsedEmailAddress: RecentlyUsedEmailIdPK_RecentlyUsedEmailAddressRecentlyUsedEmailId
Yes
Cluster Key IX_RecentlyUsedEmailAddress_SysUserId_EmailAddress: SenderSysUserFid\EmailAddressIX_RecentlyUsedEmailAddress_SysUserId_EmailAddressSenderSysUserFid, EmailAddress
Foreign Keys Foreign Keys
NameColumns
FK_RecentlyUsedEmailAddressSenderSysUserFid->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RecentlyUsedEmailAddress]
(
[RecentlyUsedEmailId] [int] NOT NULL IDENTITY(1, 1),
[SenderSysUserFid] [int] NOT NULL,
[RecipientName] [nvarchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EmailAddress] [nvarchar] (120) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LastUsedOn] [datetimeoffset] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RecentlyUsedEmailAddress] ADD CONSTRAINT [PK_RecentlyUsedEmailAddress] PRIMARY KEY NONCLUSTERED  ([RecentlyUsedEmailId]) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_RecentlyUsedEmailAddress_SysUserId_EmailAddress] ON [dbo].[RecentlyUsedEmailAddress] ([SenderSysUserFid], [EmailAddress]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RecentlyUsedEmailAddress] ADD CONSTRAINT [FK_RecentlyUsedEmailAddress] FOREIGN KEY ([SenderSysUserFid]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[RecentlyUsedEmailAddress] TO [MssExec]
GRANT INSERT ON  [dbo].[RecentlyUsedEmailAddress] TO [MssExec]
GRANT DELETE ON  [dbo].[RecentlyUsedEmailAddress] TO [MssExec]
GRANT UPDATE ON  [dbo].[RecentlyUsedEmailAddress] TO [MssExec]
GO
Uses
Used By