Tables [dbo].[StorageRateMatrixXYBasis]
Properties
PropertyValue
Row Count (~)0
Created5:32:31 PM Wednesday, January 2, 2008
Last Modified9:56:11 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_StorageRateMatrixXYBasis: StorageRateMatrixXYBasisIDStorageRateMatrixXYBasisIDint4
No
1 - 1
Foreign Keys FK_StorageRateMatrixXYBasis_StorageItems: [dbo].[StorageItems].StorageItemsFIDIndexes IX_StorageRateMatrixXYBasis_StorageItems: StorageItemsFIDStorageItemsFIDint4
No
Foreign Keys FK_StorageRateMatrixXYBasis_RateMatrix: [dbo].[RateMatrix].RateMatrixFIDRateMatrixFIDint4
No
XRangeValuedecimal(12,3)9
Yes
YRangeValuedecimal(12,3)9
Yes
XBreakPointdecimal(12,3)9
Yes
YBreakPointdecimal(12,3)9
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_StorageRateMatrixXYBasis: StorageRateMatrixXYBasisIDPK_StorageRateMatrixXYBasisStorageRateMatrixXYBasisID
Yes
80
IX_StorageRateMatrixXYBasis_StorageItemsStorageItemsFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_StorageRateMatrixXYBasis_RateMatrixRateMatrixFID->[dbo].[RateMatrix].[RateMatrixID]
FK_StorageRateMatrixXYBasis_StorageItemsCascadeStorageItemsFID->[dbo].[StorageItems].[StorageItemsPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StorageRateMatrixXYBasis]
(
[StorageRateMatrixXYBasisID] [int] NOT NULL IDENTITY(1, 1),
[StorageItemsFID] [int] NOT NULL,
[RateMatrixFID] [int] NOT NULL,
[XRangeValue] [decimal] (12, 3) NULL,
[YRangeValue] [decimal] (12, 3) NULL,
[XBreakPoint] [decimal] (12, 3) NULL,
[YBreakPoint] [decimal] (12, 3) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageRateMatrixXYBasis] ADD CONSTRAINT [PK_StorageRateMatrixXYBasis] PRIMARY KEY CLUSTERED  ([StorageRateMatrixXYBasisID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageRateMatrixXYBasis] ADD CONSTRAINT [IX_StorageRateMatrixXYBasis_StorageItems] UNIQUE NONCLUSTERED  ([StorageItemsFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageRateMatrixXYBasis] ADD CONSTRAINT [FK_StorageRateMatrixXYBasis_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID])
GO
ALTER TABLE [dbo].[StorageRateMatrixXYBasis] ADD CONSTRAINT [FK_StorageRateMatrixXYBasis_StorageItems] FOREIGN KEY ([StorageItemsFID]) REFERENCES [dbo].[StorageItems] ([StorageItemsPriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[StorageRateMatrixXYBasis] TO [MssExec]
GRANT INSERT ON  [dbo].[StorageRateMatrixXYBasis] TO [MssExec]
GRANT DELETE ON  [dbo].[StorageRateMatrixXYBasis] TO [MssExec]
GRANT UPDATE ON  [dbo].[StorageRateMatrixXYBasis] TO [MssExec]
GO
Uses