Tables [dbo].[BillingMinorIncludedReduction]
Properties
PropertyValue
Row Count (~)0
Created3:35:24 PM Tuesday, May 8, 2012
Last Modified11:13:38 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_BillingMinorIncludedReduction: BillingMinorIncludedReductionIDBillingMinorIncludedReductionIDint4
No
1 - 1
Cluster Key IX_BillingMinorIncludedReduction_BillingMinorReductionFID: BillingMinorReductionFID\OtherMinorReductionFIDForeign Keys FK_BillingMinorIncludedReduction_BillingMinorReduction: [dbo].[BillingMinorReduction].BillingMinorReductionFIDBillingMinorReductionFIDint4
No
Cluster Key IX_BillingMinorIncludedReduction_BillingMinorReductionFID: BillingMinorReductionFID\OtherMinorReductionFIDForeign Keys FK_ReductionBasisDeduction_OtherMinorReduction: [dbo].[BillingMinorReduction].OtherMinorReductionFIDOtherMinorReductionFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_BillingMinorIncludedReduction: BillingMinorIncludedReductionIDPK_BillingMinorIncludedReductionBillingMinorIncludedReductionID
Yes
Cluster Key IX_BillingMinorIncludedReduction_BillingMinorReductionFID: BillingMinorReductionFID\OtherMinorReductionFIDIX_BillingMinorIncludedReduction_BillingMinorReductionFIDBillingMinorReductionFID, OtherMinorReductionFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_BillingMinorIncludedReduction_BillingMinorReductionBillingMinorReductionFID->[dbo].[BillingMinorReduction].[BillingMinorReductionID]
FK_ReductionBasisDeduction_OtherMinorReductionOtherMinorReductionFID->[dbo].[BillingMinorReduction].[BillingMinorReductionID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[BillingMinorIncludedReduction]
(
[BillingMinorIncludedReductionID] [int] NOT NULL IDENTITY(1, 1),
[BillingMinorReductionFID] [int] NOT NULL,
[OtherMinorReductionFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMinorIncludedReduction] ADD CONSTRAINT [PK_BillingMinorIncludedReduction] PRIMARY KEY NONCLUSTERED  ([BillingMinorIncludedReductionID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMinorIncludedReduction] ADD CONSTRAINT [IX_BillingMinorIncludedReduction_BillingMinorReductionFID] UNIQUE CLUSTERED  ([BillingMinorReductionFID], [OtherMinorReductionFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BillingMinorIncludedReduction] ADD CONSTRAINT [FK_BillingMinorIncludedReduction_BillingMinorReduction] FOREIGN KEY ([BillingMinorReductionFID]) REFERENCES [dbo].[BillingMinorReduction] ([BillingMinorReductionID])
GO
ALTER TABLE [dbo].[BillingMinorIncludedReduction] ADD CONSTRAINT [FK_ReductionBasisDeduction_OtherMinorReduction] FOREIGN KEY ([OtherMinorReductionFID]) REFERENCES [dbo].[BillingMinorReduction] ([BillingMinorReductionID])
GO
GRANT SELECT ON  [dbo].[BillingMinorIncludedReduction] TO [MssExec]
GRANT INSERT ON  [dbo].[BillingMinorIncludedReduction] TO [MssExec]
GRANT DELETE ON  [dbo].[BillingMinorIncludedReduction] TO [MssExec]
GRANT UPDATE ON  [dbo].[BillingMinorIncludedReduction] TO [MssExec]
GO
Uses