Tables [dbo].[InvoicedDetailRollup]
Properties
PropertyValue
Row Count (~)0
Created10:12:49 PM Thursday, December 28, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_InvoicedDetailRollupID: InvoicedDetailRollupIDInvoicedDetailRollupIDint4
No
1 - 1
Cluster Key IX_InvoicedDetailRollup_InvoicedDetailFID: InvoicedDetailFIDForeign Keys FK_InvoicedDetailRollup_InvoicedDetail: [dbo].[InvoicedDetail].InvoicedDetailFIDInvoicedDetailFIDint4
No
BillingMinorItemFIDint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_InvoicedDetailRollupID: InvoicedDetailRollupIDPK_InvoicedDetailRollupIDInvoicedDetailRollupID
Yes
80
Cluster Key IX_InvoicedDetailRollup_InvoicedDetailFID: InvoicedDetailFIDIX_InvoicedDetailRollup_InvoicedDetailFIDInvoicedDetailFID80
Foreign Keys Foreign Keys
NameUpdateDeleteColumns
FK_InvoicedDetailRollup_InvoicedDetailCascadeCascadeInvoicedDetailFID->[dbo].[InvoicedDetail].[IDPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InvoicedDetailRollup]
(
[InvoicedDetailRollupID] [int] NOT NULL IDENTITY(1, 1),
[InvoicedDetailFID] [int] NOT NULL,
[BillingMinorItemFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoicedDetailRollup] ADD CONSTRAINT [PK_InvoicedDetailRollupID] PRIMARY KEY NONCLUSTERED  ([InvoicedDetailRollupID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_InvoicedDetailRollup_InvoicedDetailFID] ON [dbo].[InvoicedDetailRollup] ([InvoicedDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoicedDetailRollup] ADD CONSTRAINT [FK_InvoicedDetailRollup_InvoicedDetail] FOREIGN KEY ([InvoicedDetailFID]) REFERENCES [dbo].[InvoicedDetail] ([IDPriKey]) ON DELETE CASCADE ON UPDATE CASCADE
GO
GRANT SELECT ON  [dbo].[InvoicedDetailRollup] TO [MssExec]
GRANT INSERT ON  [dbo].[InvoicedDetailRollup] TO [MssExec]
GRANT DELETE ON  [dbo].[InvoicedDetailRollup] TO [MssExec]
GRANT UPDATE ON  [dbo].[InvoicedDetailRollup] TO [MssExec]
GO
Uses