Tables [dbo].[ReportProfileDetail]
Properties
PropertyValue
Row Count (~)525
Created4:57:08 PM Thursday, September 7, 2006
Last Modified7:30:06 PM Tuesday, September 24, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_ReportProfileDetail: RPDetailPriKeyRPDetailPriKeyint4
No
1 - 1
Foreign Keys FK_ReportProfileDetail_ReportProfile: [dbo].[ReportProfile].ReportProfilePriKeyIndexes IX_ReportProfileDetail_ReportProfile_Report: ReportProfilePriKey\ReportPriKeyReportProfilePriKeyint4
No
Foreign Keys FK_ReportProfileDetail_Reports: [dbo].[Reports].ReportPriKeyIndexes IX_ReportProfileDetail_ReportProfile_Report: ReportProfilePriKey\ReportPriKeyReportPriKeyint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_ReportProfileDetail: RPDetailPriKeyPK_ReportProfileDetailRPDetailPriKey
Yes
80
IX_ReportProfileDetail_ReportProfile_ReportReportProfilePriKey, ReportPriKey
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ReportProfileDetail_ReportsReportPriKey->[dbo].[Reports].[Prikey]
FK_ReportProfileDetail_ReportProfileReportProfilePriKey->[dbo].[ReportProfile].[ReportProfilePriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ReportProfileDetail]
(
[RPDetailPriKey] [int] NOT NULL IDENTITY(1, 1),
[ReportProfilePriKey] [int] NOT NULL,
[ReportPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReportProfileDetail] ADD CONSTRAINT [PK_ReportProfileDetail] PRIMARY KEY CLUSTERED  ([RPDetailPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_ReportProfileDetail_ReportProfile_Report] ON [dbo].[ReportProfileDetail] ([ReportProfilePriKey], [ReportPriKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReportProfileDetail] ADD CONSTRAINT [FK_ReportProfileDetail_Reports] FOREIGN KEY ([ReportPriKey]) REFERENCES [dbo].[Reports] ([Prikey])
GO
ALTER TABLE [dbo].[ReportProfileDetail] ADD CONSTRAINT [FK_ReportProfileDetail_ReportProfile] FOREIGN KEY ([ReportProfilePriKey]) REFERENCES [dbo].[ReportProfile] ([ReportProfilePriKey])
GO
GRANT SELECT ON  [dbo].[ReportProfileDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[ReportProfileDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[ReportProfileDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[ReportProfileDetail] TO [MssExec]
GO
Uses