Tables [dbo].[ReductionProfileDetail]
Properties
PropertyValue
Row Count (~)14
Created3:41:51 PM Tuesday, May 8, 2012
Last Modified11:13:41 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_ReductionProfileDetail: ReductionProfileDetailIDReductionProfileDetailIDint4
No
1 - 1
Foreign Keys FK_ReductionProfileDetail_ReductionProfile: [dbo].[ReductionProfile].ReductionProfileFIDIndexes IX_ReductionProfileDetail_ProfileTemplate: ReductionProfileFID\ReductionTemplateFIDReductionProfileFIDint4
No
Foreign Keys FK_ReductionProfileDetail_ReductionTemplateHeader: [dbo].[ReductionTemplateHeader].ReductionTemplateFIDIndexes IX_ReductionProfileDetail_ProfileTemplate: ReductionProfileFID\ReductionTemplateFIDReductionTemplateFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_ReductionProfileDetail: ReductionProfileDetailIDPK_ReductionProfileDetailReductionProfileDetailID
Yes
IX_ReductionProfileDetail_ProfileTemplateReductionProfileFID, ReductionTemplateFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ReductionProfileDetail_ReductionProfileReductionProfileFID->[dbo].[ReductionProfile].[ReductionProfileID]
FK_ReductionProfileDetail_ReductionTemplateHeaderReductionTemplateFID->[dbo].[ReductionTemplateHeader].[ReductionTemplateID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ReductionProfileDetail]
(
[ReductionProfileDetailID] [int] NOT NULL IDENTITY(1, 1),
[ReductionProfileFID] [int] NOT NULL,
[ReductionTemplateFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionProfileDetail] ADD CONSTRAINT [PK_ReductionProfileDetail] PRIMARY KEY CLUSTERED  ([ReductionProfileDetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionProfileDetail] ADD CONSTRAINT [IX_ReductionProfileDetail_ProfileTemplate] UNIQUE NONCLUSTERED  ([ReductionProfileFID], [ReductionTemplateFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionProfileDetail] ADD CONSTRAINT [FK_ReductionProfileDetail_ReductionProfile] FOREIGN KEY ([ReductionProfileFID]) REFERENCES [dbo].[ReductionProfile] ([ReductionProfileID])
GO
ALTER TABLE [dbo].[ReductionProfileDetail] ADD CONSTRAINT [FK_ReductionProfileDetail_ReductionTemplateHeader] FOREIGN KEY ([ReductionTemplateFID]) REFERENCES [dbo].[ReductionTemplateHeader] ([ReductionTemplateID])
GO
GRANT SELECT ON  [dbo].[ReductionProfileDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[ReductionProfileDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[ReductionProfileDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[ReductionProfileDetail] TO [MssExec]
GO
Uses