Tables [dbo].[StorageDeferral]
Properties
PropertyValue
HeapYes
Row Count (~)247
Created4:57:09 PM Thursday, September 7, 2006
Last Modified3:48:39 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDescription
Primary Key PK_StorageDeferral: DeferralPriKeyDeferralPriKeyint4
No
1 - 1Primary key
Foreign Keys FK_StorageDeferral_BillingMinorItem: [dbo].[BillingMinorItem].BMinPriKeyIndexes IX_StorageDeferral_BillingMinorItem: BMinPriKeyBMinPriKeyint4
No
Foreign key to a revenue item.
RevenueEarneddatetime8
No
Date the deferred moves to a revenue account.
Processeddatetime8
Yes
The date the deferred storage was processed.
Foreign Keys FK_StorageDeferral_Sysuser: [dbo].[Sysuser].ProcessedByIndexes IX_StorageDeferral_ProcessedBy: ProcessedByProcessedByint4
Yes
The person who processed the deferred storage.
Foreign Keys FK_StorageDeferral_StorageItems: [dbo].[StorageItems].StorageItemsPriKeyIndexes IX_StorageDeferral_StorageItemsPriKey: StorageItemsPriKeyStorageItemsPriKeyint4
No
Foreign key to a stoage item.
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_StorageDeferral: DeferralPriKeyPK_StorageDeferralDeferralPriKey
Yes
80
IX_StorageDeferral_BillingMinorItemBMinPriKey
IX_StorageDeferral_ProcessedByProcessedBy
IX_StorageDeferral_StorageItemsPriKeyStorageItemsPriKey80
Foreign Keys Foreign Keys
NameColumns
FK_StorageDeferral_BillingMinorItemBMinPriKey->[dbo].[BillingMinorItem].[BMinPriKey]
FK_StorageDeferral_SysuserProcessedBy->[dbo].[Sysuser].[SysUserID]
FK_StorageDeferral_StorageItemsStorageItemsPriKey->[dbo].[StorageItems].[StorageItemsPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StorageDeferral]
(
[DeferralPriKey] [int] NOT NULL IDENTITY(1, 1),
[BMinPriKey] [int] NOT NULL,
[RevenueEarned] [datetime] NOT NULL,
[Processed] [datetime] NULL,
[ProcessedBy] [int] NULL,
[StorageItemsPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageDeferral] ADD CONSTRAINT [PK_StorageDeferral] PRIMARY KEY NONCLUSTERED  ([DeferralPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StorageDeferral_BillingMinorItem] ON [dbo].[StorageDeferral] ([BMinPriKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StorageDeferral_ProcessedBy] ON [dbo].[StorageDeferral] ([ProcessedBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StorageDeferral_StorageItemsPriKey] ON [dbo].[StorageDeferral] ([StorageItemsPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageDeferral] ADD CONSTRAINT [FK_StorageDeferral_BillingMinorItem] FOREIGN KEY ([BMinPriKey]) REFERENCES [dbo].[BillingMinorItem] ([BMinPriKey])
GO
ALTER TABLE [dbo].[StorageDeferral] ADD CONSTRAINT [FK_StorageDeferral_Sysuser] FOREIGN KEY ([ProcessedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[StorageDeferral] ADD CONSTRAINT [FK_StorageDeferral_StorageItems] FOREIGN KEY ([StorageItemsPriKey]) REFERENCES [dbo].[StorageItems] ([StorageItemsPriKey])
GO
GRANT SELECT ON  [dbo].[StorageDeferral] TO [MssExec]
GRANT INSERT ON  [dbo].[StorageDeferral] TO [MssExec]
GRANT DELETE ON  [dbo].[StorageDeferral] TO [MssExec]
GRANT UPDATE ON  [dbo].[StorageDeferral] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key to a revenue item.', 'SCHEMA', N'dbo', 'TABLE', N'StorageDeferral', 'COLUMN', N'BMinPriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key', 'SCHEMA', N'dbo', 'TABLE', N'StorageDeferral', 'COLUMN', N'DeferralPriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The date the deferred storage was processed.', 'SCHEMA', N'dbo', 'TABLE', N'StorageDeferral', 'COLUMN', N'Processed'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The person who processed the deferred storage.', 'SCHEMA', N'dbo', 'TABLE', N'StorageDeferral', 'COLUMN', N'ProcessedBy'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Date the deferred moves to a revenue account.', 'SCHEMA', N'dbo', 'TABLE', N'StorageDeferral', 'COLUMN', N'RevenueEarned'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key to a stoage item.', 'SCHEMA', N'dbo', 'TABLE', N'StorageDeferral', 'COLUMN', N'StorageItemsPriKey'
GO
Uses