Tables [dbo].[StorageBillingCycleType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)5
Created4:57:09 PM Thursday, September 7, 2006
Last Modified11:13:43 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefaultDescription
Primary Key PK_StorageBillingCycleType: BillingCyclePriKeyBillingCyclePriKeyint4
No
1 - 1
Indexes IX_StorageBillingCycleType_Description: BillingCycleDescriptionBillingCycleDescriptionvarchar(30)30
No
Description of the billing cycle.
BillingCycleDaysint4
No
(0)Number of days in the billing cycle.
Foreign Keys FK_StorageBillingCycleType_StorageProRating: [dbo].[StorageProRating].StorageProRatingFIDStorageProRatingFIDint4
Yes
IsArrearsbit1
No
((0))Flags a billing cycle to bill in arrears.
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_StorageBillingCycleType: BillingCyclePriKeyPK_StorageBillingCycleTypeBillingCyclePriKey
Yes
80
IX_StorageBillingCycleType_DescriptionBillingCycleDescription
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_StorageBillingCycleType_StorageProRatingStorageProRatingFID->[dbo].[StorageProRating].[StorageProRatingID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StorageBillingCycleType]
(
[BillingCyclePriKey] [int] NOT NULL IDENTITY(1, 1),
[BillingCycleDescription] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BillingCycleDays] [int] NOT NULL CONSTRAINT [DF_StorageBillingCycleType_BillingCycleDays] DEFAULT (0),
[StorageProRatingFID] [int] NULL,
[IsArrears] [bit] NOT NULL CONSTRAINT [DF_StorageBillingCycleType_IsArrears] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageBillingCycleType] ADD CONSTRAINT [PK_StorageBillingCycleType] PRIMARY KEY NONCLUSTERED  ([BillingCyclePriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageBillingCycleType] ADD CONSTRAINT [IX_StorageBillingCycleType_Description] UNIQUE NONCLUSTERED  ([BillingCycleDescription]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageBillingCycleType] ADD CONSTRAINT [FK_StorageBillingCycleType_StorageProRating] FOREIGN KEY ([StorageProRatingFID]) REFERENCES [dbo].[StorageProRating] ([StorageProRatingID])
GO
GRANT SELECT ON  [dbo].[StorageBillingCycleType] TO [MssExec]
GRANT INSERT ON  [dbo].[StorageBillingCycleType] TO [MssExec]
GRANT DELETE ON  [dbo].[StorageBillingCycleType] TO [MssExec]
GRANT UPDATE ON  [dbo].[StorageBillingCycleType] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Number of days in the billing cycle.', 'SCHEMA', N'dbo', 'TABLE', N'StorageBillingCycleType', 'COLUMN', N'BillingCycleDays'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Description of the billing cycle.', 'SCHEMA', N'dbo', 'TABLE', N'StorageBillingCycleType', 'COLUMN', N'BillingCycleDescription'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Flags a billing cycle to bill in arrears.', 'SCHEMA', N'dbo', 'TABLE', N'StorageBillingCycleType', 'COLUMN', N'IsArrears'
GO
Uses
Used By