Tables [dbo].[BillingMajorIncludedReduction]
Properties
PropertyValue
Row Count (~)0
Created3:35:24 PM Tuesday, May 8, 2012
Last Modified11:13:37 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_BillingMajorIncludedReduction: BillingMajorIncludedReductionIDBillingMajorIncludedReductionIDint4
No
1 - 1
Cluster Key IX_BillingMajorIncludedReduction_BillingMajorReductionFID: BillingMajorReductionFID\OtherMajorReductionFIDForeign Keys FK_BillingMajorIncludedReduction_BillingMajorReduction: [dbo].[BillingMajorReduction].BillingMajorReductionFIDBillingMajorReductionFIDint4
No
Cluster Key IX_BillingMajorIncludedReduction_BillingMajorReductionFID: BillingMajorReductionFID\OtherMajorReductionFIDForeign Keys FK_ReductionBasisDeduction_OtherMajorReduction: [dbo].[BillingMajorReduction].OtherMajorReductionFIDOtherMajorReductionFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_BillingMajorIncludedReduction: BillingMajorIncludedReductionIDPK_BillingMajorIncludedReductionBillingMajorIncludedReductionID
Yes
Cluster Key IX_BillingMajorIncludedReduction_BillingMajorReductionFID: BillingMajorReductionFID\OtherMajorReductionFIDIX_BillingMajorIncludedReduction_BillingMajorReductionFIDBillingMajorReductionFID, OtherMajorReductionFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_BillingMajorIncludedReduction_BillingMajorReductionBillingMajorReductionFID->[dbo].[BillingMajorReduction].[BillingMajorReductionID]
FK_ReductionBasisDeduction_OtherMajorReductionOtherMajorReductionFID->[dbo].[BillingMajorReduction].[BillingMajorReductionID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[BillingMajorIncludedReduction]
(
[BillingMajorIncludedReductionID] [int] NOT NULL IDENTITY(1, 1),
[BillingMajorReductionFID] [int] NOT NULL,
[OtherMajorReductionFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMajorIncludedReduction] ADD CONSTRAINT [PK_BillingMajorIncludedReduction] PRIMARY KEY NONCLUSTERED  ([BillingMajorIncludedReductionID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMajorIncludedReduction] ADD CONSTRAINT [IX_BillingMajorIncludedReduction_BillingMajorReductionFID] UNIQUE CLUSTERED  ([BillingMajorReductionFID], [OtherMajorReductionFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMajorIncludedReduction] ADD CONSTRAINT [FK_BillingMajorIncludedReduction_BillingMajorReduction] FOREIGN KEY ([BillingMajorReductionFID]) REFERENCES [dbo].[BillingMajorReduction] ([BillingMajorReductionID])
GO
ALTER TABLE [dbo].[BillingMajorIncludedReduction] ADD CONSTRAINT [FK_ReductionBasisDeduction_OtherMajorReduction] FOREIGN KEY ([OtherMajorReductionFID]) REFERENCES [dbo].[BillingMajorReduction] ([BillingMajorReductionID])
GO
GRANT SELECT ON  [dbo].[BillingMajorIncludedReduction] TO [MssExec]
GRANT INSERT ON  [dbo].[BillingMajorIncludedReduction] TO [MssExec]
GRANT DELETE ON  [dbo].[BillingMajorIncludedReduction] TO [MssExec]
GRANT UPDATE ON  [dbo].[BillingMajorIncludedReduction] TO [MssExec]
GO
Uses