Tables [dbo].[InvoiceCharges]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created4:57:07 PM Thursday, September 7, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_InvoiceCharges: InvoiceChargesIDInvoiceChargesIDint4
No
1 - 1
Foreign Keys FK_InvoiceCharges_AddlCharges: [dbo].[AddlCharges].AddlChargesIDAddlChargesIDint4
No
InvoiceNovarchar(10)10
No
InvoiceDatedatetime8
No
InvoiceSuppNoint4
No
InvoiceChargeAmountmoney8
No
Foreign Keys FK_InvoiceCharges_ORDERS: [dbo].[Orders].OrdPriKeyOrdPriKeyint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_InvoiceCharges: InvoiceChargesIDPK_InvoiceChargesInvoiceChargesID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_InvoiceCharges_AddlChargesAddlChargesID->[dbo].[AddlCharges].[AddlChargesID]
FK_InvoiceCharges_ORDERSOrdPriKey->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InvoiceCharges]
(
[InvoiceChargesID] [int] NOT NULL IDENTITY(1, 1),
[AddlChargesID] [int] NOT NULL,
[InvoiceNo] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[InvoiceDate] [datetime] NOT NULL,
[InvoiceSuppNo] [int] NOT NULL,
[InvoiceChargeAmount] [money] NOT NULL,
[OrdPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceCharges] ADD CONSTRAINT [PK_InvoiceCharges] PRIMARY KEY CLUSTERED  ([InvoiceChargesID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceCharges] ADD CONSTRAINT [FK_InvoiceCharges_AddlCharges] FOREIGN KEY ([AddlChargesID]) REFERENCES [dbo].[AddlCharges] ([AddlChargesID])
GO
ALTER TABLE [dbo].[InvoiceCharges] ADD CONSTRAINT [FK_InvoiceCharges_ORDERS] FOREIGN KEY ([OrdPriKey]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[InvoiceCharges] TO [MssExec]
GRANT INSERT ON  [dbo].[InvoiceCharges] TO [MssExec]
GRANT DELETE ON  [dbo].[InvoiceCharges] TO [MssExec]
GRANT UPDATE ON  [dbo].[InvoiceCharges] TO [MssExec]
GO
Uses