Tables [dbo].[ReductionTemplateRateLookup]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)3
Created3:44:52 PM Tuesday, May 8, 2012
Last Modified10:30:29 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ReductionTemplateRateLookup: ReductionTemplateRateLookupIDReductionTemplateRateLookupIDint4
No
1 - 1
Descriptionvarchar(128)128
No
Foreign Keys FK_ReductionTemplateRateLookup_ReductionTemplateRateLookupBasis: [dbo].[ReductionTemplateRateLookupBasis].ReductionTemplateRateLookupBasisFIDReductionTemplateRateLookupBasisFIDint4
No
Foreign Keys FK_ReductionTemplateRateLookup_ReductionType: [dbo].[ReductionType].ReductionTypeFIDReductionTypeFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_ReductionTemplateRateLookup: ReductionTemplateRateLookupIDPK_ReductionTemplateRateLookupReductionTemplateRateLookupID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ReductionTemplateRateLookup_ReductionTemplateRateLookupBasisReductionTemplateRateLookupBasisFID->[dbo].[ReductionTemplateRateLookupBasis].[ReductionTemplateRateLookupBasisID]
FK_ReductionTemplateRateLookup_ReductionTypeReductionTypeFID->[dbo].[ReductionType].[ReductionTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ReductionTemplateRateLookup]
(
[ReductionTemplateRateLookupID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ReductionTemplateRateLookupBasisFID] [int] NOT NULL,
[ReductionTypeFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionTemplateRateLookup] ADD CONSTRAINT [PK_ReductionTemplateRateLookup] PRIMARY KEY NONCLUSTERED  ([ReductionTemplateRateLookupID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionTemplateRateLookup] ADD CONSTRAINT [FK_ReductionTemplateRateLookup_ReductionTemplateRateLookupBasis] FOREIGN KEY ([ReductionTemplateRateLookupBasisFID]) REFERENCES [dbo].[ReductionTemplateRateLookupBasis] ([ReductionTemplateRateLookupBasisID])
GO
ALTER TABLE [dbo].[ReductionTemplateRateLookup] ADD CONSTRAINT [FK_ReductionTemplateRateLookup_ReductionType] FOREIGN KEY ([ReductionTypeFID]) REFERENCES [dbo].[ReductionType] ([ReductionTypeID])
GO
GRANT SELECT ON  [dbo].[ReductionTemplateRateLookup] TO [MssExec]
GRANT INSERT ON  [dbo].[ReductionTemplateRateLookup] TO [MssExec]
GRANT DELETE ON  [dbo].[ReductionTemplateRateLookup] TO [MssExec]
GRANT UPDATE ON  [dbo].[ReductionTemplateRateLookup] TO [MssExec]
GO
Uses
Used By