Tables [dbo].[HtmlLetterReportProfileMap]
Properties
PropertyValue
Row Count (~)0
Created7:24:25 AM Friday, December 7, 2018
Last Modified7:24:42 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_HtmlLetterReportProfileMap: HtmlLetterReportProfileMapIDHtmlLetterReportProfileMapIDint4
No
1 - 1
Foreign Keys FK_HtmlLetterReportProfileMap_HtmlLetter: [dbo].[HtmlLetter].HtmlLetterFIDIndexes IX_HtmlLetterReportProfileMap_HtmlLetterFID_ReportProfileFID: HtmlLetterFID\ReportProfileFIDHtmlLetterFIDint4
No
Foreign Keys FK_HtmlLetterReportProfileMap_ReportProfile: [dbo].[ReportProfile].ReportProfileFIDIndexes IX_HtmlLetterReportProfileMap_HtmlLetterFID_ReportProfileFID: HtmlLetterFID\ReportProfileFIDIndexes IX_HtmlLetterReportProfileMap_ReportProfileFID: ReportProfileFIDReportProfileFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_HtmlLetterReportProfileMap: HtmlLetterReportProfileMapIDPK_HtmlLetterReportProfileMapHtmlLetterReportProfileMapID
Yes
IX_HtmlLetterReportProfileMap_HtmlLetterFID_ReportProfileFIDHtmlLetterFID, ReportProfileFID
Yes
IX_HtmlLetterReportProfileMap_ReportProfileFIDReportProfileFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_HtmlLetterReportProfileMap_HtmlLetterCascadeHtmlLetterFID->[dbo].[HtmlLetter].[HtmlLetterID]
FK_HtmlLetterReportProfileMap_ReportProfileCascadeReportProfileFID->[dbo].[ReportProfile].[ReportProfilePriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[HtmlLetterReportProfileMap]
(
[HtmlLetterReportProfileMapID] [int] NOT NULL IDENTITY(1, 1),
[HtmlLetterFID] [int] NOT NULL,
[ReportProfileFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[HtmlLetterReportProfileMap] ADD CONSTRAINT [PK_HtmlLetterReportProfileMap] PRIMARY KEY CLUSTERED  ([HtmlLetterReportProfileMapID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_HtmlLetterReportProfileMap_HtmlLetterFID_ReportProfileFID] ON [dbo].[HtmlLetterReportProfileMap] ([HtmlLetterFID], [ReportProfileFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_HtmlLetterReportProfileMap_ReportProfileFID] ON [dbo].[HtmlLetterReportProfileMap] ([ReportProfileFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[HtmlLetterReportProfileMap] ADD CONSTRAINT [FK_HtmlLetterReportProfileMap_HtmlLetter] FOREIGN KEY ([HtmlLetterFID]) REFERENCES [dbo].[HtmlLetter] ([HtmlLetterID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[HtmlLetterReportProfileMap] ADD CONSTRAINT [FK_HtmlLetterReportProfileMap_ReportProfile] FOREIGN KEY ([ReportProfileFID]) REFERENCES [dbo].[ReportProfile] ([ReportProfilePriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[HtmlLetterReportProfileMap] TO [MssExec]
GRANT INSERT ON  [dbo].[HtmlLetterReportProfileMap] TO [MssExec]
GRANT DELETE ON  [dbo].[HtmlLetterReportProfileMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[HtmlLetterReportProfileMap] TO [MssExec]
GO
Uses